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

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

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 66 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
67 67
68 #if defined(OS_MACOSX) && !defined(OS_IOS) 68 #if defined(OS_MACOSX) && !defined(OS_IOS)
69 static void MigrateUserPrefs(PrefService* prefs); 69 static void MigrateUserPrefs(PrefService* prefs);
70 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 70 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
71 71
72 AutofillManager(AutofillDriver* driver, 72 AutofillManager(AutofillDriver* driver,
73 AutofillClient* client, 73 AutofillClient* client,
74 const std::string& app_locale, 74 const std::string& app_locale,
75 AutofillDownloadManagerState enable_download_manager); 75 AutofillDownloadManagerState enable_download_manager);
76 virtual ~AutofillManager(); 76 ~AutofillManager() override;
77 77
78 // Sets an external delegate. 78 // Sets an external delegate.
79 void SetExternalDelegate(AutofillExternalDelegate* delegate); 79 void SetExternalDelegate(AutofillExternalDelegate* delegate);
80 80
81 void ShowAutofillSettings(); 81 void ShowAutofillSettings();
82 82
83 #if defined(OS_MACOSX) && !defined(OS_IOS) 83 #if defined(OS_MACOSX) && !defined(OS_IOS)
84 // Whether the field represented by |fieldData| should show an entry to prompt 84 // Whether the field represented by |fieldData| should show an entry to prompt
85 // the user to give Chrome access to the user's address book. 85 // the user to give Chrome access to the user's address book.
86 bool ShouldShowAccessAddressBookSuggestion(const FormData& data, 86 bool ShouldShowAccessAddressBookSuggestion(const FormData& data,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 ScopedVector<FormStructure>* form_structures() { return &form_structures_; } 208 ScopedVector<FormStructure>* form_structures() { return &form_structures_; }
209 209
210 // Exposed for testing. 210 // Exposed for testing.
211 AutofillExternalDelegate* external_delegate() { 211 AutofillExternalDelegate* external_delegate() {
212 return external_delegate_; 212 return external_delegate_;
213 } 213 }
214 214
215 private: 215 private:
216 // AutofillDownloadManager::Observer: 216 // AutofillDownloadManager::Observer:
217 virtual void OnLoadedServerPredictions( 217 void OnLoadedServerPredictions(const std::string& response_xml) override;
218 const std::string& response_xml) override;
219 218
220 // Returns false if Autofill is disabled or if no Autofill data is available. 219 // Returns false if Autofill is disabled or if no Autofill data is available.
221 bool RefreshDataModels() const; 220 bool RefreshDataModels() const;
222 221
223 // Unpacks |unique_id| and fills |form_group| and |variant| with the 222 // Unpacks |unique_id| and fills |form_group| and |variant| with the
224 // appropriate data source and variant index. Sets |is_credit_card| to true 223 // appropriate data source and variant index. Sets |is_credit_card| to true
225 // if |data_model| points to a CreditCard data model, false if it's a 224 // if |data_model| points to a CreditCard data model, false if it's a
226 // profile data model. 225 // profile data model.
227 // Returns false if the unpacked id cannot be found. 226 // Returns false if the unpacked id cannot be found.
228 bool GetProfileOrCreditCard(int unique_id, 227 bool GetProfileOrCreditCard(int unique_id,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 UserHappinessFormLoadAndSubmission); 371 UserHappinessFormLoadAndSubmission);
373 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 372 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
374 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 373 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
375 FormSubmittedAutocompleteEnabled); 374 FormSubmittedAutocompleteEnabled);
376 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 375 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
377 }; 376 };
378 377
379 } // namespace autofill 378 } // namespace autofill
380 379
381 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 380 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698