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

Unified Diff: content/browser/web_contents/web_contents_impl.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/ssl/ssl_manager.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index f80a86364b971e280cecc081cd06ba783f375998..adc0e974dc62049f801eb5c527e2a5107f701df2 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -419,6 +419,8 @@ class CONTENT_EXPORT WebContentsImpl
void ResumeMediaSession() override;
void SuspendMediaSession() override;
void StopMediaSession() override;
+ void OnPasswordInputShownOnHttp() override;
+ void OnCreditCardInputShownOnHttp() override;
#if defined(OS_ANDROID)
base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
@@ -439,6 +441,12 @@ class CONTENT_EXPORT WebContentsImpl
// with certificate errors.
bool DisplayedContentWithCertErrors() const;
+ // Returns true if this page is HTTP and has displayed a password field.
+ bool DisplayedPasswordFieldOnHttp() const;
+
+ // Returns true if this page is HTTP and has displayed a credit card field.
+ bool DisplayedCreditCardFieldOnHttp() const;
+
// Implementation of PageNavigator.
WebContents* OpenURL(const OpenURLParams& params) override;
@@ -1250,6 +1258,12 @@ class CONTENT_EXPORT WebContentsImpl
// certificate errors.
bool displayed_content_with_cert_errors_;
+ // True if this page displayed a password input field on HTTP.
+ bool displayed_password_field_on_http_;
+
+ // True if this page displayed a credit card input field on HTTP.
+ bool displayed_credit_card_field_on_http_;
+
// Whether the initial empty page has been accessed by another page, making it
// unsafe to show the pending URL. Usually false unless another window tries
// to modify the blank page. Always false after the first commit.
« no previous file with comments | « content/browser/ssl/ssl_manager.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698