| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 protected: | 148 protected: |
| 149 // Only PersonalDataManagerFactory and certain tests can create instances of | 149 // Only PersonalDataManagerFactory and certain tests can create instances of |
| 150 // PersonalDataManager. | 150 // PersonalDataManager. |
| 151 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); | 151 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); |
| 152 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); | 152 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); |
| 153 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, | 153 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, |
| 154 AggregateExistingAuxiliaryProfile); | 154 AggregateExistingAuxiliaryProfile); |
| 155 friend class AutofillTest; | 155 friend class AutofillTest; |
| 156 friend class PersonalDataManagerFactory; | 156 friend class PersonalDataManagerFactory; |
| 157 friend class PersonalDataManagerTest; | 157 friend class PersonalDataManagerTest; |
| 158 friend class scoped_ptr<PersonalDataManager>; | |
| 159 friend class ProfileSyncServiceAutofillTest; | 158 friend class ProfileSyncServiceAutofillTest; |
| 160 friend class RemoveAutofillTester; | 159 friend class RemoveAutofillTester; |
| 161 friend class TestingAutomationProvider; | 160 friend class TestingAutomationProvider; |
| 161 friend struct base::DefaultDeleter<PersonalDataManager>; |
| 162 friend void autofill_helper::SetProfiles(int, std::vector<AutofillProfile>*); | 162 friend void autofill_helper::SetProfiles(int, std::vector<AutofillProfile>*); |
| 163 friend void autofill_helper::SetCreditCards(int, std::vector<CreditCard>*); | 163 friend void autofill_helper::SetCreditCards(int, std::vector<CreditCard>*); |
| 164 | 164 |
| 165 PersonalDataManager(); | 165 PersonalDataManager(); |
| 166 virtual ~PersonalDataManager(); | 166 virtual ~PersonalDataManager(); |
| 167 | 167 |
| 168 // Sets |web_profiles_| to the contents of |profiles| and updates the web | 168 // Sets |web_profiles_| to the contents of |profiles| and updates the web |
| 169 // database by adding, updating and removing profiles. | 169 // database by adding, updating and removing profiles. |
| 170 // The relationship between this and Refresh is subtle. | 170 // The relationship between this and Refresh is subtle. |
| 171 // A call to |SetProfiles| could include out-of-date data that may conflict | 171 // A call to |SetProfiles| could include out-of-date data that may conflict |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 // Whether we have already logged the number of profiles this session. | 260 // Whether we have already logged the number of profiles this session. |
| 261 mutable bool has_logged_profile_count_; | 261 mutable bool has_logged_profile_count_; |
| 262 | 262 |
| 263 // Manages registration lifetime for NotificationObserver implementation. | 263 // Manages registration lifetime for NotificationObserver implementation. |
| 264 content::NotificationRegistrar notification_registrar_; | 264 content::NotificationRegistrar notification_registrar_; |
| 265 | 265 |
| 266 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 266 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 269 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |