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

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

Issue 2444383007: Trigger Dangerous indicator for unsafe subresources (Closed)
Patch Set: protip: #include the .h, not the .cc Created 4 years, 1 month 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // transfer to a different process between the start of the network load and 103 // transfer to a different process between the start of the network load and
104 // commit. Defaults to true. 104 // commit. Defaults to true.
105 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); 105 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation);
106 106
107 // Called to inform the delegate that the WebContents's navigation state 107 // Called to inform the delegate that the WebContents's navigation state
108 // changed. The |changed_flags| indicates the parts of the navigation state 108 // changed. The |changed_flags| indicates the parts of the navigation state
109 // that have been updated. 109 // that have been updated.
110 virtual void NavigationStateChanged(WebContents* source, 110 virtual void NavigationStateChanged(WebContents* source,
111 InvalidateTypes changed_flags) {} 111 InvalidateTypes changed_flags) {}
112 112
113 // Called to inform the delegate that the WebContent's visible SSL state (as 113 // Called to inform the delegate that the WebContent's visible
114 // defined by SSLStatus) changed. 114 // security state changed and that security UI should be updated.
115 virtual void VisibleSSLStateChanged(WebContents* source) {} 115 virtual void VisibleSecurityStateChanged(WebContents* source) {}
116 116
117 // Creates a new tab with the already-created WebContents 'new_contents'. 117 // Creates a new tab with the already-created WebContents 'new_contents'.
118 // The window for the added contents should be reparented correctly when this 118 // The window for the added contents should be reparented correctly when this
119 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold 119 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold
120 // the initial position and size. If |was_blocked| is non-nullptr, then 120 // the initial position and size. If |was_blocked| is non-nullptr, then
121 // |*was_blocked| will be set to true if the popup gets blocked, and left 121 // |*was_blocked| will be set to true if the popup gets blocked, and left
122 // unchanged otherwise. 122 // unchanged otherwise.
123 virtual void AddNewContents(WebContents* source, 123 virtual void AddNewContents(WebContents* source,
124 WebContents* new_contents, 124 WebContents* new_contents,
125 WindowOpenDisposition disposition, 125 WindowOpenDisposition disposition,
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // Called when |this| is no longer the WebContentsDelegate for |source|. 554 // Called when |this| is no longer the WebContentsDelegate for |source|.
555 void Detach(WebContents* source); 555 void Detach(WebContents* source);
556 556
557 // The WebContents that this is currently a delegate for. 557 // The WebContents that this is currently a delegate for.
558 std::set<WebContents*> attached_contents_; 558 std::set<WebContents*> attached_contents_;
559 }; 559 };
560 560
561 } // namespace content 561 } // namespace content
562 562
563 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 563 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« chrome/browser/safe_browsing/ui_manager_unittest.cc ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698