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

Unified Diff: content/public/browser/web_contents.h

Issue 2362523003: Add (some) password detection for HTTP-bad (Closed)
Patch Set: trigger the downgrade from OnPasswordFormsParsed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 8c66b2a198cd037271734b31d09b002fd2a11960..0dd89196b55e3c09fec1a3007bcf4a72bd4fd73c 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -720,6 +720,18 @@ class WebContents : public PageNavigator,
// Requests to stop the current media session.
virtual void StopMediaSession() = 0;
+ // Called when the WebContents has displayed a password field on an
+ // HTTP page. This method modifies the appropriate NavigationEntry's
+ // SSLStatus to record the sensitive input field, so that embedders
+ // can adjust the UI if desired.
+ virtual void OnPasswordInputShownOnHttp() = 0;
+
+ // Called when the WebContents has displayed a credit card field on an
+ // HTTP page. This method modifies the appropriate NavigationEntry's
+ // SSLStatus to record the sensitive input field, so that embedders
+ // can adjust the UI if desired.
+ virtual void OnCreditCardInputShownOnHttp() = 0;
+
#if defined(OS_ANDROID)
CONTENT_EXPORT static WebContents* FromJavaWebContents(
const base::android::JavaRef<jobject>& jweb_contents_android);
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698