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

Side by Side Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.h

Issue 2672623005: Record Autofill form events specially for nonsecure pages (Closed)
Patch Set: fix test added in rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_
6 #define IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ 6 #define IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 namespace password_manager { 28 namespace password_manager {
29 class PasswordGenerationManager; 29 class PasswordGenerationManager;
30 } 30 }
31 31
32 namespace syncer { 32 namespace syncer {
33 class SyncService; 33 class SyncService;
34 } 34 }
35 35
36 namespace web {
37 class WebState;
38 }
39
36 namespace autofill { 40 namespace autofill {
37 41
38 class PersonalDataManager; 42 class PersonalDataManager;
39 43
40 // iOS implementation of AutofillClient. 44 // iOS implementation of AutofillClient.
41 class AutofillClientIOS : public AutofillClient { 45 class AutofillClientIOS : public AutofillClient {
42 public: 46 public:
43 AutofillClientIOS( 47 AutofillClientIOS(
44 ios::ChromeBrowserState* browser_state, 48 ios::ChromeBrowserState* browser_state,
49 web::WebState* web_state,
45 infobars::InfoBarManager* infobar_manager, 50 infobars::InfoBarManager* infobar_manager,
46 id<AutofillClientIOSBridge> bridge, 51 id<AutofillClientIOSBridge> bridge,
47 password_manager::PasswordGenerationManager* password_generation_manager, 52 password_manager::PasswordGenerationManager* password_generation_manager,
48 std::unique_ptr<IdentityProvider> identity_provider); 53 std::unique_ptr<IdentityProvider> identity_provider);
49 ~AutofillClientIOS() override; 54 ~AutofillClientIOS() override;
50 55
51 // AutofillClient implementation. 56 // AutofillClient implementation.
52 PersonalDataManager* GetPersonalDataManager() override; 57 PersonalDataManager* GetPersonalDataManager() override;
53 PrefService* GetPrefs() override; 58 PrefService* GetPrefs() override;
54 syncer::SyncService* GetSyncService() override; 59 syncer::SyncService* GetSyncService() override;
(...skipping 26 matching lines...) Expand all
81 void UpdateAutofillPopupDataListValues( 86 void UpdateAutofillPopupDataListValues(
82 const std::vector<base::string16>& values, 87 const std::vector<base::string16>& values,
83 const std::vector<base::string16>& labels) override; 88 const std::vector<base::string16>& labels) override;
84 void PropagateAutofillPredictions( 89 void PropagateAutofillPredictions(
85 content::RenderFrameHost* rfh, 90 content::RenderFrameHost* rfh,
86 const std::vector<FormStructure*>& forms) override; 91 const std::vector<FormStructure*>& forms) override;
87 void DidFillOrPreviewField(const base::string16& autofilled_value, 92 void DidFillOrPreviewField(const base::string16& autofilled_value,
88 const base::string16& profile_full_name) override; 93 const base::string16& profile_full_name) override;
89 void OnFirstUserGestureObserved() override; 94 void OnFirstUserGestureObserved() override;
90 scoped_refptr<AutofillWebDataService> GetDatabase() override; 95 scoped_refptr<AutofillWebDataService> GetDatabase() override;
91 bool IsContextSecure(const GURL& form_origin) override; 96 bool IsContextSecure() override;
92 bool ShouldShowSigninPromo() override; 97 bool ShouldShowSigninPromo() override;
93 void StartSigninFlow() override; 98 void StartSigninFlow() override;
94 void ShowHttpNotSecureExplanation() override; 99 void ShowHttpNotSecureExplanation() override;
95 100
96 private: 101 private:
97 ios::ChromeBrowserState* browser_state_; 102 ios::ChromeBrowserState* browser_state_;
103 web::WebState* web_state_;
98 infobars::InfoBarManager* infobar_manager_; 104 infobars::InfoBarManager* infobar_manager_;
99 __weak id<AutofillClientIOSBridge> bridge_; 105 __weak id<AutofillClientIOSBridge> bridge_;
100 password_manager::PasswordGenerationManager* password_generation_manager_; 106 password_manager::PasswordGenerationManager* password_generation_manager_;
101 std::unique_ptr<IdentityProvider> identity_provider_; 107 std::unique_ptr<IdentityProvider> identity_provider_;
102 CardUnmaskPromptControllerImpl unmask_controller_; 108 CardUnmaskPromptControllerImpl unmask_controller_;
103 109
104 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS); 110 DISALLOW_COPY_AND_ASSIGN(AutofillClientIOS);
105 }; 111 };
106 112
107 } // namespace autofill 113 } // namespace autofill
108 114
109 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_ 115 #endif // IOS_CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_CLIENT_IOS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/autofill/BUILD.gn ('k') | ios/chrome/browser/ui/autofill/autofill_client_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698