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

Unified 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: comments, style tweaks 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index fe2dc9d1fc8dcc6e355999b6ff47937def0636fd..272c22540321001a4e32b708b021ec6f2e545561 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -177,8 +177,14 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
const LoadCommittedDetails& details,
const FrameNavigateParams& params) {}
- // This method is invoked when the SecurityStyle of the WebContents changes.
- virtual void SecurityStyleChanged(content::SecurityStyle security_style) {}
+ // This method is invoked when the SecurityStyle of the WebContents
+ // changes. |security_style| is the new
+ // SecurityStyle. |security_style_explanation| contains human-readable
+ // strings explaining why the SecurityStyle of the page has been
+ // downgraded.
+ virtual void SecurityStyleChanged(
+ SecurityStyle security_style,
+ const SecurityStyleExplanation& security_style_explanation) {}
// This method is invoked once the window.document object of the main frame
// was created.

Powered by Google App Engine
This is Rietveld 408576698