| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 WebDataServiceBase::Handle GetServerCreditCards( | 92 WebDataServiceBase::Handle GetServerCreditCards( |
| 93 WebDataServiceConsumer* consumer) override; | 93 WebDataServiceConsumer* consumer) override; |
| 94 void UnmaskServerCreditCard(const CreditCard& card, | 94 void UnmaskServerCreditCard(const CreditCard& card, |
| 95 const base::string16& full_number) override; | 95 const base::string16& full_number) override; |
| 96 void MaskServerCreditCard(const std::string& id) override; | 96 void MaskServerCreditCard(const std::string& id) override; |
| 97 | 97 |
| 98 void ClearAllServerData(); | 98 void ClearAllServerData(); |
| 99 | 99 |
| 100 void UpdateServerCardUsageStats(const CreditCard& credit_card) override; | 100 void UpdateServerCardUsageStats(const CreditCard& credit_card) override; |
| 101 void UpdateServerAddressUsageStats(const AutofillProfile& profile) override; | 101 void UpdateServerAddressUsageStats(const AutofillProfile& profile) override; |
| 102 void UpdateServerCardBillingAddress(const CreditCard& credit_card) override; |
| 102 | 103 |
| 103 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, | 104 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, |
| 104 const base::Time& delete_end) override; | 105 const base::Time& delete_end) override; |
| 105 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, | 106 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, |
| 106 const base::Time& delete_end) override; | 107 const base::Time& delete_end) override; |
| 107 | 108 |
| 108 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 109 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
| 109 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 110 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
| 110 | 111 |
| 111 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); | 112 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // This factory is used on the UI thread. All vended weak pointers are | 148 // This factory is used on the UI thread. All vended weak pointers are |
| 148 // invalidated in ShutdownOnUIThread(). | 149 // invalidated in ShutdownOnUIThread(). |
| 149 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; | 150 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); | 152 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace autofill | 155 } // namespace autofill |
| 155 | 156 |
| 156 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 157 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
| OLD | NEW |