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

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 1136473006: Don't autofill credit cards on non-secure pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use GetLastCommittedEntry 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: components/autofill/core/browser/autofill_client.h
diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
index 6d2edcab3db9f361f4383d63bb7b4556b46d6cb3..8fb749f81696300c9c61634f7592d5eee97ebeb7 100644
--- a/components/autofill/core/browser/autofill_client.h
+++ b/components/autofill/core/browser/autofill_client.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "ui/base/window_open_disposition.h"
+#include "url/gurl.h"
class IdentityProvider;
@@ -173,6 +174,13 @@ class AutofillClient {
// Opens |url| with the supplied |disposition|.
virtual void LinkClicked(const GURL& url,
WindowOpenDisposition disposition) = 0;
+
+ // If the context is secure. Default implementation only checks the
+ // |form_origin|'s scheme being cryptographic, override in inherited classes
+ // to also check for secure https and no mixed content.
+ virtual bool IsContextSecure(const GURL& form_origin) {
+ return form_origin.SchemeIsCryptographic();
Evan Stade 2015/06/25 23:54:57 ah, I didn't notice this code because normally we
sigbjorn 2015/06/26 07:30:44 What do you prefer as a solution then? To avoid a
+ };
};
} // namespace autofill
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698