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

Unified Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.h

Issue 2672623005: Record Autofill form events specially for nonsecure pages (Closed)
Patch Set: sebsg comments Created 3 years, 10 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: ios/chrome/browser/ui/autofill/autofill_client_ios.h
diff --git a/ios/chrome/browser/ui/autofill/autofill_client_ios.h b/ios/chrome/browser/ui/autofill/autofill_client_ios.h
index 68855edf85d95940027882e37d568f8987cfebf5..c4c0fe28dc782e1da0c98f0c3cd5ced467226407 100644
--- a/ios/chrome/browser/ui/autofill/autofill_client_ios.h
+++ b/ios/chrome/browser/ui/autofill/autofill_client_ios.h
@@ -33,6 +33,10 @@ namespace syncer {
class SyncService;
}
+namespace web {
+class WebState;
+}
+
namespace autofill {
class PersonalDataManager;
@@ -42,6 +46,7 @@ class AutofillClientIOS : public AutofillClient {
public:
AutofillClientIOS(
ios::ChromeBrowserState* browser_state,
+ web::WebState* web_state,
infobars::InfoBarManager* infobar_manager,
id<AutofillClientIOSBridge> bridge,
password_manager::PasswordGenerationManager* password_generation_manager,
@@ -89,12 +94,14 @@ class AutofillClientIOS : public AutofillClient {
void OnFirstUserGestureObserved() override;
scoped_refptr<AutofillWebDataService> GetDatabase() override;
bool IsContextSecure(const GURL& form_origin) override;
+ bool IsMainUrlSecure() override;
bool ShouldShowSigninPromo() override;
void StartSigninFlow() override;
void ShowHttpNotSecureExplanation() override;
private:
ios::ChromeBrowserState* browser_state_;
+ web::WebState* web_state_;
infobars::InfoBarManager* infobar_manager_;
id<AutofillClientIOSBridge> bridge_; // Weak
password_manager::PasswordGenerationManager* password_generation_manager_;

Powered by Google App Engine
This is Rietveld 408576698