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

Side by Side Diff: components/autofill/core/browser/personal_data_manager.h

Issue 2625413002: [Payments] Update metadata instead of billing address for server cards. (Closed)
Patch Set: Updated comment Created 3 years, 11 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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void AddCreditCard(const CreditCard& credit_card); 145 void AddCreditCard(const CreditCard& credit_card);
146 146
147 // Updates |credit_card| which already exists in the web database. This 147 // Updates |credit_card| which already exists in the web database. This
148 // can only be used on local credit cards. 148 // can only be used on local credit cards.
149 virtual void UpdateCreditCard(const CreditCard& credit_card); 149 virtual void UpdateCreditCard(const CreditCard& credit_card);
150 150
151 // Update a server card. Only the full number and masked/unmasked 151 // Update a server card. Only the full number and masked/unmasked
152 // status can be changed. Looks up the card by server ID. 152 // status can be changed. Looks up the card by server ID.
153 virtual void UpdateServerCreditCard(const CreditCard& credit_card); 153 virtual void UpdateServerCreditCard(const CreditCard& credit_card);
154 154
155 // Updates the billing address for the server |credit_card|. Looks up the card 155 // Updates the use stats and billing address id for the server |credit_card|.
156 // by GUID. 156 // Looks up the card by server_id.
157 void UpdateServerCardBillingAddress(const CreditCard& credit_card); 157 void UpdateServerCardMetadata(const CreditCard& credit_card);
158 158
159 // Resets the card for |guid| to the masked state. 159 // Resets the card for |guid| to the masked state.
160 void ResetFullServerCard(const std::string& guid); 160 void ResetFullServerCard(const std::string& guid);
161 161
162 // Resets all unmasked cards to the masked state. 162 // Resets all unmasked cards to the masked state.
163 void ResetFullServerCards(); 163 void ResetFullServerCards();
164 164
165 // Deletes all server profiles and cards (both masked and unmasked). 165 // Deletes all server profiles and cards (both masked and unmasked).
166 void ClearAllServerData(); 166 void ClearAllServerData();
167 167
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // validation rules. 546 // validation rules.
547 scoped_refptr<net::URLRequestContextGetter> context_getter_; 547 scoped_refptr<net::URLRequestContextGetter> context_getter_;
548 #endif 548 #endif
549 549
550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 550 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
551 }; 551 };
552 552
553 } // namespace autofill 553 } // namespace autofill
554 554
555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 555 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698