Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_service.h

Issue 1042353003: Create syncable metadata table for Wallet credit cards and addresses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment about migration code Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698