| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "chrome/browser/api/sync/profile_sync_service_observer.h" |
| 17 #include "chrome/browser/api/webdata/web_data_service_consumer.h" |
| 16 #include "chrome/browser/autofill/autofill_profile.h" | 18 #include "chrome/browser/autofill/autofill_profile.h" |
| 17 #include "chrome/browser/autofill/credit_card.h" | 19 #include "chrome/browser/autofill/credit_card.h" |
| 18 #include "chrome/browser/autofill/field_types.h" | 20 #include "chrome/browser/autofill/field_types.h" |
| 19 #include "chrome/browser/api/webdata/autofill_web_data_service.h" | |
| 20 #include "chrome/browser/api/webdata/web_data_service_consumer.h" | |
| 21 | |
| 22 #include "chrome/browser/profiles/profile_keyed_service.h" | 21 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 23 #include "chrome/browser/sync/profile_sync_service_observer.h" | |
| 24 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
| 25 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 26 | 24 |
| 27 class AutofillMetrics; | 25 class AutofillMetrics; |
| 28 class FormStructure; | 26 class FormStructure; |
| 29 class PersonalDataManagerObserver; | 27 class PersonalDataManagerObserver; |
| 30 | 28 |
| 31 namespace autofill_helper { | 29 namespace autofill_helper { |
| 32 void SetProfiles(int, std::vector<AutofillProfile>*); | 30 void SetProfiles(int, std::vector<AutofillProfile>*); |
| 33 void SetCreditCards(int, std::vector<CreditCard>*); | 31 void SetCreditCards(int, std::vector<CreditCard>*); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Whether we have already logged the number of profiles this session. | 260 // Whether we have already logged the number of profiles this session. |
| 263 mutable bool has_logged_profile_count_; | 261 mutable bool has_logged_profile_count_; |
| 264 | 262 |
| 265 // Manages registration lifetime for NotificationObserver implementation. | 263 // Manages registration lifetime for NotificationObserver implementation. |
| 266 content::NotificationRegistrar notification_registrar_; | 264 content::NotificationRegistrar notification_registrar_; |
| 267 | 265 |
| 268 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 266 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
| 269 }; | 267 }; |
| 270 | 268 |
| 271 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 269 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
| OLD | NEW |