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_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 void RemoveCreditCard(const std::string& guid) override; | 84 void RemoveCreditCard(const std::string& guid) override; |
85 WebDataServiceBase::Handle GetCreditCards( | 85 WebDataServiceBase::Handle GetCreditCards( |
86 WebDataServiceConsumer* consumer) override; | 86 WebDataServiceConsumer* consumer) override; |
87 | 87 |
88 // Server cards. | 88 // Server cards. |
89 WebDataServiceBase::Handle GetServerCreditCards( | 89 WebDataServiceBase::Handle GetServerCreditCards( |
90 WebDataServiceConsumer* consumer) override; | 90 WebDataServiceConsumer* consumer) override; |
91 void UnmaskServerCreditCard(const std::string& id, | 91 void UnmaskServerCreditCard(const std::string& id, |
92 const base::string16& full_number) override; | 92 const base::string16& full_number) override; |
93 void MaskServerCreditCard(const std::string& id) override; | 93 void MaskServerCreditCard(const std::string& id) override; |
| 94 void UpdateUnmaskedCardUsageStats(const CreditCard& credit_card) override; |
94 | 95 |
95 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, | 96 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, |
96 const base::Time& delete_end) override; | 97 const base::Time& delete_end) override; |
97 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, | 98 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, |
98 const base::Time& delete_end) override; | 99 const base::Time& delete_end) override; |
99 | 100 |
100 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 101 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
101 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 102 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
102 | 103 |
103 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); | 104 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // This factory is used on the UI thread. All vended weak pointers are | 139 // This factory is used on the UI thread. All vended weak pointers are |
139 // invalidated in ShutdownOnUIThread(). | 140 // invalidated in ShutdownOnUIThread(). |
140 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; | 141 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); | 143 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace autofill | 146 } // namespace autofill |
146 | 147 |
147 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 148 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
OLD | NEW |