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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 2375623003: Revert of Allow top-level navigation in extension pop-ups if it only triggers a download. (Closed)
Patch Set: 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_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // OpenURL() for these cases which does it for you). 91 // OpenURL() for these cases which does it for you).
92 92
93 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't 93 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't
94 // opened immediately. 94 // opened immediately.
95 virtual WebContents* OpenURLFromTab(WebContents* source, 95 virtual WebContents* OpenURLFromTab(WebContents* source,
96 const OpenURLParams& params); 96 const OpenURLParams& params);
97 97
98 // Allows the delegate to optionally cancel navigations that attempt to 98 // Allows the delegate to optionally cancel navigations that attempt to
99 // transfer to a different process between the start of the network load and 99 // transfer to a different process between the start of the network load and
100 // commit. Defaults to true. 100 // commit. Defaults to true.
101 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); 101 virtual bool ShouldTransferNavigation();
102 102
103 // Called to inform the delegate that the WebContents's navigation state 103 // Called to inform the delegate that the WebContents's navigation state
104 // changed. The |changed_flags| indicates the parts of the navigation state 104 // changed. The |changed_flags| indicates the parts of the navigation state
105 // that have been updated. 105 // that have been updated.
106 virtual void NavigationStateChanged(WebContents* source, 106 virtual void NavigationStateChanged(WebContents* source,
107 InvalidateTypes changed_flags) {} 107 InvalidateTypes changed_flags) {}
108 108
109 // Called to inform the delegate that the WebContent's visible SSL state (as 109 // Called to inform the delegate that the WebContent's visible SSL state (as
110 // defined by SSLStatus) changed. 110 // defined by SSLStatus) changed.
111 virtual void VisibleSSLStateChanged(const WebContents* source) {} 111 virtual void VisibleSSLStateChanged(const WebContents* source) {}
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 // Called when |this| is no longer the WebContentsDelegate for |source|. 544 // Called when |this| is no longer the WebContentsDelegate for |source|.
545 void Detach(WebContents* source); 545 void Detach(WebContents* source);
546 546
547 // The WebContents that this is currently a delegate for. 547 // The WebContents that this is currently a delegate for.
548 std::set<WebContents*> attached_contents_; 548 std::set<WebContents*> attached_contents_;
549 }; 549 };
550 550
551 } // namespace content 551 } // namespace content
552 552
553 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 553 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698