| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Credit cards. | 81 // Credit cards. |
| 82 void AddCreditCard(const CreditCard& credit_card) override; | 82 void AddCreditCard(const CreditCard& credit_card) override; |
| 83 void UpdateCreditCard(const CreditCard& credit_card) override; | 83 void UpdateCreditCard(const CreditCard& credit_card) override; |
| 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 CreditCard& card, |
| 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 | 94 |
| 95 void ClearAllServerData(); | 95 void ClearAllServerData(); |
| 96 | 96 |
| 97 void UpdateUnmaskedCardUsageStats(const CreditCard& credit_card) override; | 97 void UpdateServerCardUsageStats(const CreditCard& credit_card) override; |
| 98 void UpdateServerAddressUsageStats(const AutofillProfile& profile) override; |
| 98 | 99 |
| 99 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, | 100 void RemoveAutofillDataModifiedBetween(const base::Time& delete_begin, |
| 100 const base::Time& delete_end) override; | 101 const base::Time& delete_end) override; |
| 101 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, | 102 void RemoveOriginURLsModifiedBetween(const base::Time& delete_begin, |
| 102 const base::Time& delete_end) override; | 103 const base::Time& delete_end) override; |
| 103 | 104 |
| 104 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 105 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
| 105 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); | 106 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); |
| 106 | 107 |
| 107 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); | 108 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // This factory is used on the UI thread. All vended weak pointers are | 143 // This factory is used on the UI thread. All vended weak pointers are |
| 143 // invalidated in ShutdownOnUIThread(). | 144 // invalidated in ShutdownOnUIThread(). |
| 144 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; | 145 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); | 147 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace autofill | 150 } // namespace autofill |
| 150 | 151 |
| 151 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 152 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
| OLD | NEW |