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

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

Issue 2413533003: [Payments] Normalize billing address before sending to the merchant. (Closed)
Patch Set: Created 4 years, 2 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // Resets all unmasked cards to the masked state. 161 // Resets all unmasked cards to the masked state.
162 void ResetFullServerCards(); 162 void ResetFullServerCards();
163 163
164 // Deletes all server profiles and cards (both masked and unmasked). 164 // Deletes all server profiles and cards (both masked and unmasked).
165 void ClearAllServerData(); 165 void ClearAllServerData();
166 166
167 // Sets a server credit card for test. 167 // Sets a server credit card for test.
168 void AddServerCreditCardForTest(std::unique_ptr<CreditCard> credit_card); 168 void AddServerCreditCardForTest(std::unique_ptr<CreditCard> credit_card);
169 169
170 // Sets a server credit card for test.
171 void UpdateCreditCardForTest(const CreditCard& credit_card);
172
173 // Sets a server credit card for test.
174 void UpdateProfileForTest(const AutofillProfile& profile);
175
170 // Returns the credit card with the specified |guid|, or NULL if there is 176 // Returns the credit card with the specified |guid|, or NULL if there is
171 // no credit card with the specified |guid|. 177 // no credit card with the specified |guid|.
172 CreditCard* GetCreditCardByGUID(const std::string& guid); 178 CreditCard* GetCreditCardByGUID(const std::string& guid);
173 179
174 // Gets the field types availabe in the stored address and credit card data. 180 // Gets the field types availabe in the stored address and credit card data.
175 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); 181 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types);
176 182
177 // Returns true if the credit card information is stored with a password. 183 // Returns true if the credit card information is stored with a password.
178 bool HasPassword(); 184 bool HasPassword();
179 185
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // validation rules. 524 // validation rules.
519 scoped_refptr<net::URLRequestContextGetter> context_getter_; 525 scoped_refptr<net::URLRequestContextGetter> context_getter_;
520 #endif 526 #endif
521 527
522 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 528 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
523 }; 529 };
524 530
525 } // namespace autofill 531 } // namespace autofill
526 532
527 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 533 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698