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

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 17450010: Create AutofillDriverImpl unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after conflict Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/autofill/content/browser/autofill_driver_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Registers our Enable/Disable Autofill pref. 78 // Registers our Enable/Disable Autofill pref.
79 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 79 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
80 80
81 AutofillManager(AutofillDriver* driver, 81 AutofillManager(AutofillDriver* driver,
82 autofill::AutofillManagerDelegate* delegate, 82 autofill::AutofillManagerDelegate* delegate,
83 const std::string& app_locale, 83 const std::string& app_locale,
84 AutofillDownloadManagerState enable_download_manager); 84 AutofillDownloadManagerState enable_download_manager);
85 virtual ~AutofillManager(); 85 virtual ~AutofillManager();
86 86
87 // Set an external delegate. 87 // Sets an external delegate.
88 void SetExternalDelegate(AutofillExternalDelegate* delegate); 88 void SetExternalDelegate(AutofillExternalDelegate* delegate);
89 89
90 // Whether browser process will create and own the Autofill popup UI. 90 // Whether browser process will create and own the Autofill popup UI.
91 bool IsNativeUiEnabled(); 91 bool IsNativeUiEnabled();
92 92
93 // Called from our external delegate so they cannot be private. 93 // Called from our external delegate so they cannot be private.
94 virtual void OnFillAutofillFormData(int query_id, 94 virtual void OnFillAutofillFormData(int query_id,
95 const FormData& form, 95 const FormData& form,
96 const FormFieldData& field, 96 const FormFieldData& field,
97 int unique_id); 97 int unique_id);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void OnClickFailed(autofill::AutocheckoutStatus status); 177 void OnClickFailed(autofill::AutocheckoutStatus status);
178 178
179 // Shows the Autocheckout bubble if conditions are right. See comments for 179 // Shows the Autocheckout bubble if conditions are right. See comments for
180 // AutocheckoutManager::MaybeShowAutocheckoutBubble. Input element requesting 180 // AutocheckoutManager::MaybeShowAutocheckoutBubble. Input element requesting
181 // bubble belongs to |form|. |bounding_box| is the bounding box of the input 181 // bubble belongs to |form|. |bounding_box| is the bounding box of the input
182 // field in focus. 182 // field in focus.
183 virtual void OnMaybeShowAutocheckoutBubble(const FormData& form, 183 virtual void OnMaybeShowAutocheckoutBubble(const FormData& form,
184 const gfx::RectF& bounding_box); 184 const gfx::RectF& bounding_box);
185 185
186 // Resets cache. 186 // Resets cache.
187 void Reset(); 187 virtual void Reset();
188 188
189 protected: 189 protected:
190 // Test code should prefer to use this constructor. 190 // Test code should prefer to use this constructor.
191 AutofillManager(AutofillDriver* driver, 191 AutofillManager(AutofillDriver* driver,
192 autofill::AutofillManagerDelegate* delegate, 192 autofill::AutofillManagerDelegate* delegate,
193 PersonalDataManager* personal_data); 193 PersonalDataManager* personal_data);
194 194
195 // Returns the value of the AutofillEnabled pref. 195 // Returns the value of the AutofillEnabled pref.
196 virtual bool IsAutofillEnabled() const; 196 virtual bool IsAutofillEnabled() const;
197 197
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 UserHappinessFormLoadAndSubmission); 410 UserHappinessFormLoadAndSubmission);
411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 411 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
412 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 412 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
413 FormSubmittedAutocompleteEnabled); 413 FormSubmittedAutocompleteEnabled);
414 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 414 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
415 }; 415 };
416 416
417 } // namespace autofill 417 } // namespace autofill
418 418
419 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 419 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/content/browser/autofill_driver_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698