| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Server cards. | 91 // Server cards. |
| 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 UpdateServerCardMetadata(const CreditCard& credit_card) override; |
| 101 void UpdateServerAddressUsageStats(const AutofillProfile& profile) override; | 101 void UpdateServerAddressMetadata(const AutofillProfile& profile) override; |
| 102 void UpdateServerCardBillingAddress(const CreditCard& credit_card) override; | |
| 103 | 102 |
| 104 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, | 103 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, |
| 105 const base::Time& delete_end) override; | 104 const base::Time& delete_end) override; |
| 106 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, | 105 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, |
| 107 const base::Time& delete_end) override; | 106 const base::Time& delete_end) override; |
| 108 | 107 |
| 109 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 108 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
| 110 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 109 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
| 111 | 110 |
| 112 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); | 111 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // This factory is used on the UI thread. All vended weak pointers are | 149 // This factory is used on the UI thread. All vended weak pointers are |
| 151 // invalidated in ShutdownOnUIThread(). | 150 // invalidated in ShutdownOnUIThread(). |
| 152 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; | 151 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; |
| 153 | 152 |
| 154 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); | 153 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); |
| 155 }; | 154 }; |
| 156 | 155 |
| 157 } // namespace autofill | 156 } // namespace autofill |
| 158 | 157 |
| 159 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 158 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
| OLD | NEW |