OLD | NEW |
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_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // When the manager makes a request from WebDataServiceBase, the database | 347 // When the manager makes a request from WebDataServiceBase, the database |
348 // is queried on another thread, we record the query handle until we | 348 // is queried on another thread, we record the query handle until we |
349 // get called back. We store handles for both profile and credit card queries | 349 // get called back. We store handles for both profile and credit card queries |
350 // so they can be loaded at the same time. | 350 // so they can be loaded at the same time. |
351 WebDataServiceBase::Handle pending_profiles_query_; | 351 WebDataServiceBase::Handle pending_profiles_query_; |
352 WebDataServiceBase::Handle pending_server_profiles_query_; | 352 WebDataServiceBase::Handle pending_server_profiles_query_; |
353 WebDataServiceBase::Handle pending_creditcards_query_; | 353 WebDataServiceBase::Handle pending_creditcards_query_; |
354 WebDataServiceBase::Handle pending_server_creditcards_query_; | 354 WebDataServiceBase::Handle pending_server_creditcards_query_; |
355 | 355 |
356 // The observers. | 356 // The observers. |
357 ObserverList<PersonalDataManagerObserver> observers_; | 357 base::ObserverList<PersonalDataManagerObserver> observers_; |
358 | 358 |
359 private: | 359 private: |
360 // Finds the country code that occurs most frequently among all profiles. | 360 // Finds the country code that occurs most frequently among all profiles. |
361 // Prefers verified profiles over unverified ones. | 361 // Prefers verified profiles over unverified ones. |
362 std::string MostCommonCountryCodeFromProfiles() const; | 362 std::string MostCommonCountryCodeFromProfiles() const; |
363 | 363 |
364 // Called when the value of prefs::kAutofillEnabled changes. | 364 // Called when the value of prefs::kAutofillEnabled changes. |
365 void EnabledPrefChanged(); | 365 void EnabledPrefChanged(); |
366 | 366 |
367 // Functionally equivalent to GetProfiles(), but also records metrics if | 367 // Functionally equivalent to GetProfiles(), but also records metrics if |
(...skipping 26 matching lines...) Expand all Loading... |
394 | 394 |
395 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. | 395 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. |
396 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_; | 396 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_; |
397 | 397 |
398 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 398 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
399 }; | 399 }; |
400 | 400 |
401 } // namespace autofill | 401 } // namespace autofill |
402 | 402 |
403 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 403 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
OLD | NEW |