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 COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_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/webdata/web_data_service_consumer.h" | |
17 #include "chrome/browser/webdata/autofill_web_data_service_observer.h" | |
18 #include "components/autofill/browser/autofill_profile.h" | 16 #include "components/autofill/browser/autofill_profile.h" |
19 #include "components/autofill/browser/credit_card.h" | 17 #include "components/autofill/browser/credit_card.h" |
20 #include "components/autofill/browser/field_types.h" | 18 #include "components/autofill/browser/field_types.h" |
| 19 #include "components/webdata/autofill/autofill_webdata_service_observer.h" |
| 20 #include "components/webdata/common/web_data_service_consumer.h" |
21 | 21 |
22 class AutofillMetrics; | 22 class AutofillMetrics; |
23 class FormStructure; | 23 class FormStructure; |
24 class PersonalDataManagerObserver; | 24 class PersonalDataManagerObserver; |
25 | 25 |
26 namespace autofill_helper { | 26 namespace autofill_helper { |
27 void SetProfiles(int, std::vector<AutofillProfile>*); | 27 void SetProfiles(int, std::vector<AutofillProfile>*); |
28 void SetCreditCards(int, std::vector<CreditCard>*); | 28 void SetCreditCards(int, std::vector<CreditCard>*); |
29 } | 29 } |
30 | 30 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // For logging UMA metrics. Overridden by metrics tests. | 265 // For logging UMA metrics. Overridden by metrics tests. |
266 scoped_ptr<const AutofillMetrics> metric_logger_; | 266 scoped_ptr<const AutofillMetrics> metric_logger_; |
267 | 267 |
268 // Whether we have already logged the number of profiles this session. | 268 // Whether we have already logged the number of profiles this session. |
269 mutable bool has_logged_profile_count_; | 269 mutable bool has_logged_profile_count_; |
270 | 270 |
271 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 271 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
272 }; | 272 }; |
273 | 273 |
274 #endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ | 274 #endif // COMPONENTS_AUTOFILL_BROWSER_PERSONAL_DATA_MANAGER_H_ |
OLD | NEW |