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

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

Issue 996973003: Revamp Autofill Wallet settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac compiles Created 5 years, 9 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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void AddCreditCard(const CreditCard& credit_card); 114 void AddCreditCard(const CreditCard& credit_card);
115 115
116 // Updates |credit_card| which already exists in the web database. This 116 // Updates |credit_card| which already exists in the web database. This
117 // can only be used on local credit cards. 117 // can only be used on local credit cards.
118 void UpdateCreditCard(const CreditCard& credit_card); 118 void UpdateCreditCard(const CreditCard& credit_card);
119 119
120 // Update a server card. Only the full number and masked/unmasked 120 // Update a server card. Only the full number and masked/unmasked
121 // status can be changed. 121 // status can be changed.
122 void UpdateServerCreditCard(const CreditCard& credit_card); 122 void UpdateServerCreditCard(const CreditCard& credit_card);
123 123
124 // Resets the card for |guid| to the masked state.
125 void ResetFullServerCard(const std::string& guid);
126
124 // Resets all unmasked cards to the masked state. 127 // Resets all unmasked cards to the masked state.
128 // TODO(estade): remove this.
125 void ResetFullServerCards(); 129 void ResetFullServerCards();
126 130
127 // Returns the credit card with the specified |guid|, or NULL if there is 131 // Returns the credit card with the specified |guid|, or NULL if there is
128 // no credit card with the specified |guid|. 132 // no credit card with the specified |guid|.
129 CreditCard* GetCreditCardByGUID(const std::string& guid); 133 CreditCard* GetCreditCardByGUID(const std::string& guid);
130 134
131 // Gets the field types availabe in the stored address and credit card data. 135 // Gets the field types availabe in the stored address and credit card data.
132 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); 136 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types);
133 137
134 // Returns true if the credit card information is stored with a password. 138 // Returns true if the credit card information is stored with a password.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 376
373 // An observer to listen for changes to prefs::kAutofillEnabled. 377 // An observer to listen for changes to prefs::kAutofillEnabled.
374 scoped_ptr<BooleanPrefMember> enabled_pref_; 378 scoped_ptr<BooleanPrefMember> enabled_pref_;
375 379
376 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 380 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
377 }; 381 };
378 382
379 } // namespace autofill 383 } // namespace autofill
380 384
381 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 385 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_profile.h ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698