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

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

Issue 11149006: Extend scoped_ptr to be closer to unique_ptr. Support custom deleters, and deleting arrays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 protected: 149 protected:
150 // Only PersonalDataManagerFactory and certain tests can create instances of 150 // Only PersonalDataManagerFactory and certain tests can create instances of
151 // PersonalDataManager. 151 // PersonalDataManager.
152 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); 152 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast);
153 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); 153 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup);
154 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, 154 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
155 AggregateExistingAuxiliaryProfile); 155 AggregateExistingAuxiliaryProfile);
156 friend class AutofillTest; 156 friend class AutofillTest;
157 friend class PersonalDataManagerFactory; 157 friend class PersonalDataManagerFactory;
158 friend class PersonalDataManagerTest; 158 friend class PersonalDataManagerTest;
159 friend class scoped_ptr<PersonalDataManager>;
160 friend class ProfileSyncServiceAutofillTest; 159 friend class ProfileSyncServiceAutofillTest;
161 friend class RemoveAutofillTester; 160 friend class RemoveAutofillTester;
162 friend class TestingAutomationProvider; 161 friend class TestingAutomationProvider;
162 friend struct base::DefaultDeleter<PersonalDataManager>;
163 friend void autofill_helper::SetProfiles(int, std::vector<AutofillProfile>*); 163 friend void autofill_helper::SetProfiles(int, std::vector<AutofillProfile>*);
164 friend void autofill_helper::SetCreditCards(int, std::vector<CreditCard>*); 164 friend void autofill_helper::SetCreditCards(int, std::vector<CreditCard>*);
165 165
166 PersonalDataManager(); 166 PersonalDataManager();
167 virtual ~PersonalDataManager(); 167 virtual ~PersonalDataManager();
168 168
169 // Sets |web_profiles_| to the contents of |profiles| and updates the web 169 // Sets |web_profiles_| to the contents of |profiles| and updates the web
170 // database by adding, updating and removing profiles. 170 // database by adding, updating and removing profiles.
171 // The relationship between this and Refresh is subtle. 171 // The relationship between this and Refresh is subtle.
172 // A call to |SetProfiles| could include out-of-date data that may conflict 172 // A call to |SetProfiles| could include out-of-date data that may conflict
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Whether we have already logged the number of profiles this session. 259 // Whether we have already logged the number of profiles this session.
260 mutable bool has_logged_profile_count_; 260 mutable bool has_logged_profile_count_;
261 261
262 // Manages registration lifetime for NotificationObserver implementation. 262 // Manages registration lifetime for NotificationObserver implementation.
263 content::NotificationRegistrar notification_registrar_; 263 content::NotificationRegistrar notification_registrar_;
264 264
265 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 265 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
266 }; 266 };
267 267
268 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 268 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « base/memory/scoped_ptr_unittest.nc ('k') | chrome/browser/sync_file_system/sync_file_system_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698