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

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

Issue 1007003007: Clear wallet data from autofill when disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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
« no previous file with comments | « no previous file | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 124 // Resets the card for |guid| to the masked state.
125 void ResetFullServerCard(const std::string& guid); 125 void ResetFullServerCard(const std::string& guid);
126 126
127 // Resets all unmasked cards to the masked state. 127 // Resets all unmasked cards to the masked state.
128 // TODO(estade): remove this.
129 void ResetFullServerCards(); 128 void ResetFullServerCards();
130 129
131 // Returns the credit card with the specified |guid|, or NULL if there is 130 // Returns the credit card with the specified |guid|, or NULL if there is
132 // no credit card with the specified |guid|. 131 // no credit card with the specified |guid|.
133 CreditCard* GetCreditCardByGUID(const std::string& guid); 132 CreditCard* GetCreditCardByGUID(const std::string& guid);
134 133
135 // Gets the field types availabe in the stored address and credit card data. 134 // Gets the field types availabe in the stored address and credit card data.
136 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types); 135 void GetNonEmptyTypes(ServerFieldTypeSet* non_empty_types);
137 136
138 // Returns true if the credit card information is stored with a password. 137 // Returns true if the credit card information is stored with a password.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 378
380 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled. 379 // An observer to listen for changes to prefs::kAutofillWalletImportEnabled.
381 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_; 380 scoped_ptr<BooleanPrefMember> wallet_enabled_pref_;
382 381
383 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 382 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
384 }; 383 };
385 384
386 } // namespace autofill 385 } // namespace autofill
387 386
388 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 387 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698