Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2377833002: Block navigations in extensions via ShouldTransferNavigation (not via OpenURL). (Closed)
Patch Set: Add missing files under chrome/test/data/extensions/api_test/browser_action/popup_with_form/ Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 RenderFrameHostImpl* render_frame_host, 598 RenderFrameHostImpl* render_frame_host,
599 const LoadCommittedDetails& details, 599 const LoadCommittedDetails& details,
600 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; 600 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override;
601 void SetMainFrameMimeType(const std::string& mime_type) override; 601 void SetMainFrameMimeType(const std::string& mime_type) override;
602 bool CanOverscrollContent() const override; 602 bool CanOverscrollContent() const override;
603 void NotifyChangedNavigationState(InvalidateTypes changed_flags) override; 603 void NotifyChangedNavigationState(InvalidateTypes changed_flags) override;
604 void DidStartNavigationToPendingEntry(const GURL& url, 604 void DidStartNavigationToPendingEntry(const GURL& url,
605 ReloadType reload_type) override; 605 ReloadType reload_type) override;
606 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 606 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
607 const OpenURLParams& params) override; 607 const OpenURLParams& params) override;
608 bool ShouldTransferNavigation() override; 608 bool ShouldTransferNavigation(bool is_main_frame_navigation) override;
609 bool ShouldPreserveAbortedURLs() override; 609 bool ShouldPreserveAbortedURLs() override;
610 void DidStartLoading(FrameTreeNode* frame_tree_node, 610 void DidStartLoading(FrameTreeNode* frame_tree_node,
611 bool to_different_document) override; 611 bool to_different_document) override;
612 void DidStopLoading() override; 612 void DidStopLoading() override;
613 void DidChangeLoadProgress() override; 613 void DidChangeLoadProgress() override;
614 ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( 614 ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
615 NavigationHandle* navigation_handle) override; 615 NavigationHandle* navigation_handle) override;
616 616
617 // RenderWidgetHostDelegate -------------------------------------------------- 617 // RenderWidgetHostDelegate --------------------------------------------------
618 618
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 // Adds/removes a callback called on creation of each new WebContents. 1479 // Adds/removes a callback called on creation of each new WebContents.
1480 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1480 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1481 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1481 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1482 1482
1483 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1483 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1484 }; 1484 };
1485 1485
1486 } // namespace content 1486 } // namespace content
1487 1487
1488 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1488 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698