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

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

Issue 2829853008: Stores server card as a full server card when upload to server succeeds. (Closed)
Patch Set: Renames AddServerCreditCard to AddFullServerCreditCard. Adds DCHECK to verify that we are in a tran… Created 3 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/macros.h" 10 #include "base/macros.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const base::Time& begin, 78 const base::Time& begin,
79 const base::Time& end, 79 const base::Time& end,
80 WebDataServiceConsumer* consumer) override; 80 WebDataServiceConsumer* consumer) override;
81 void UpdateAutofillEntries( 81 void UpdateAutofillEntries(
82 const std::vector<AutofillEntry>& autofill_entries) override; 82 const std::vector<AutofillEntry>& autofill_entries) override;
83 83
84 // Credit cards. 84 // Credit cards.
85 void AddCreditCard(const CreditCard& credit_card) override; 85 void AddCreditCard(const CreditCard& credit_card) override;
86 void UpdateCreditCard(const CreditCard& credit_card) override; 86 void UpdateCreditCard(const CreditCard& credit_card) override;
87 void RemoveCreditCard(const std::string& guid) override; 87 void RemoveCreditCard(const std::string& guid) override;
88 void AddFullServerCreditCard(const CreditCard& credit_card) override;
88 WebDataServiceBase::Handle GetCreditCards( 89 WebDataServiceBase::Handle GetCreditCards(
89 WebDataServiceConsumer* consumer) override; 90 WebDataServiceConsumer* consumer) override;
90 91
91 // Server cards. 92 // Server cards.
92 WebDataServiceBase::Handle GetServerCreditCards( 93 WebDataServiceBase::Handle GetServerCreditCards(
93 WebDataServiceConsumer* consumer) override; 94 WebDataServiceConsumer* consumer) override;
94 void UnmaskServerCreditCard(const CreditCard& card, 95 void UnmaskServerCreditCard(const CreditCard& card,
95 const base::string16& full_number) override; 96 const base::string16& full_number) override;
96 void MaskServerCreditCard(const std::string& id) override; 97 void MaskServerCreditCard(const std::string& id) override;
97 98
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // This factory is used on the UI thread. All vended weak pointers are 150 // This factory is used on the UI thread. All vended weak pointers are
150 // invalidated in ShutdownOnUIThread(). 151 // invalidated in ShutdownOnUIThread().
151 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; 152 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); 154 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService);
154 }; 155 };
155 156
156 } // namespace autofill 157 } // namespace autofill
157 158
158 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 159 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698