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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rsleevi comment Created 5 years, 6 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_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const LoadCommittedDetails& details, 170 const LoadCommittedDetails& details,
171 const FrameNavigateParams& params) {} 171 const FrameNavigateParams& params) {}
172 172
173 // And regardless of what frame navigated, this method is invoked after 173 // And regardless of what frame navigated, this method is invoked after
174 // DidCommitProvisionalLoadForFrame was invoked. 174 // DidCommitProvisionalLoadForFrame was invoked.
175 virtual void DidNavigateAnyFrame( 175 virtual void DidNavigateAnyFrame(
176 RenderFrameHost* render_frame_host, 176 RenderFrameHost* render_frame_host,
177 const LoadCommittedDetails& details, 177 const LoadCommittedDetails& details,
178 const FrameNavigateParams& params) {} 178 const FrameNavigateParams& params) {}
179 179
180 // This method is invoked when the SecurityStyle of the WebContents changes. 180 // This method is invoked when the SecurityStyle of the WebContents
181 virtual void SecurityStyleChanged(content::SecurityStyle security_style) {} 181 // changes. |security_style| is the new
Charlie Reis 2015/06/17 18:37:40 nit: Looks like "changes" fits on the previous lin
estark 2015/06/17 20:35:57 Done.
182 // SecurityStyle. |security_style_explanations| contains human-readable
183 // strings explaining why the SecurityStyle of the page has been
184 // downgraded.
185 virtual void SecurityStyleChanged(
186 SecurityStyle security_style,
187 const SecurityStyleExplanations& security_style_explanations) {}
182 188
183 // This method is invoked once the window.document object of the main frame 189 // This method is invoked once the window.document object of the main frame
184 // was created. 190 // was created.
185 virtual void DocumentAvailableInMainFrame() {} 191 virtual void DocumentAvailableInMainFrame() {}
186 192
187 // This method is invoked once the onload handler of the main frame has 193 // This method is invoked once the onload handler of the main frame has
188 // completed. 194 // completed.
189 virtual void DocumentOnLoadCompletedInMainFrame() {} 195 virtual void DocumentOnLoadCompletedInMainFrame() {}
190 196
191 // This method is invoked when the document in the given frame finished 197 // This method is invoked when the document in the given frame finished
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 void ResetWebContents(); 401 void ResetWebContents();
396 402
397 WebContentsImpl* web_contents_; 403 WebContentsImpl* web_contents_;
398 404
399 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 405 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
400 }; 406 };
401 407
402 } // namespace content 408 } // namespace content
403 409
404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 410 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698