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

Side by Side Diff: chrome/browser/autofill/personal_data_manager.h

Issue 10073018: Add Delete Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Saves a credit card value detected in |ImportedFormData|. 78 // Saves a credit card value detected in |ImportedFormData|.
79 virtual void SaveImportedCreditCard(const CreditCard& imported_credit_card); 79 virtual void SaveImportedCreditCard(const CreditCard& imported_credit_card);
80 80
81 // Adds |profile| to the web database. 81 // Adds |profile| to the web database.
82 void AddProfile(const AutofillProfile& profile); 82 void AddProfile(const AutofillProfile& profile);
83 83
84 // Updates |profile| which already exists in the web database. 84 // Updates |profile| which already exists in the web database.
85 void UpdateProfile(const AutofillProfile& profile); 85 void UpdateProfile(const AutofillProfile& profile);
86 86
87 // Removes the profile represented by |guid|. 87 // Removes the profile represented by |guid|.
88 void RemoveProfile(const std::string& guid); 88 virtual void RemoveProfile(const std::string& guid);
89 89
90 // Returns the profile with the specified |guid|, or NULL if there is no 90 // Returns the profile with the specified |guid|, or NULL if there is no
91 // profile with the specified |guid|. 91 // profile with the specified |guid|.
92 AutofillProfile* GetProfileByGUID(const std::string& guid); 92 AutofillProfile* GetProfileByGUID(const std::string& guid);
93 93
94 // Adds |credit_card| to the web database. 94 // Adds |credit_card| to the web database.
95 void AddCreditCard(const CreditCard& credit_card); 95 void AddCreditCard(const CreditCard& credit_card);
96 96
97 // Updates |credit_card| which already exists in the web database. 97 // Updates |credit_card| which already exists in the web database.
98 void UpdateCreditCard(const CreditCard& credit_card); 98 void UpdateCreditCard(const CreditCard& credit_card);
99 99
100 // Removes the credit card represented by |guid|. 100 // Removes the credit card represented by |guid|.
101 void RemoveCreditCard(const std::string& guid); 101 virtual void RemoveCreditCard(const std::string& guid);
102 102
103 // Returns the credit card with the specified |guid|, or NULL if there is 103 // Returns the credit card with the specified |guid|, or NULL if there is
104 // no credit card with the specified |guid|. 104 // no credit card with the specified |guid|.
105 CreditCard* GetCreditCardByGUID(const std::string& guid); 105 CreditCard* GetCreditCardByGUID(const std::string& guid);
106 106
107 // Gets the field types availabe in the stored address and credit card data. 107 // Gets the field types availabe in the stored address and credit card data.
108 void GetNonEmptyTypes(FieldTypeSet* non_empty_types) const; 108 void GetNonEmptyTypes(FieldTypeSet* non_empty_types) const;
109 109
110 // Returns true if the credit card information is stored with a password. 110 // Returns true if the credit card information is stored with a password.
111 bool HasPassword(); 111 bool HasPassword();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Whether we have already logged the number of profiles this session. 254 // Whether we have already logged the number of profiles this session.
255 mutable bool has_logged_profile_count_; 255 mutable bool has_logged_profile_count_;
256 256
257 // Manages registration lifetime for NotificationObserver implementation. 257 // Manages registration lifetime for NotificationObserver implementation.
258 content::NotificationRegistrar notification_registrar_; 258 content::NotificationRegistrar notification_registrar_;
259 259
260 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 260 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
261 }; 261 };
262 262
263 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 263 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698