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

Side by Side Diff: chrome/browser/sync/test/integration/autofill_helper.h

Issue 16154031: Un-refcount AutofillWebData and TokenWebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 7 years, 6 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 | 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_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 namespace autofill_helper { 27 namespace autofill_helper {
28 28
29 enum ProfileType { 29 enum ProfileType {
30 PROFILE_MARION, 30 PROFILE_MARION,
31 PROFILE_HOMER, 31 PROFILE_HOMER,
32 PROFILE_FRASIER, 32 PROFILE_FRASIER,
33 PROFILE_NULL 33 PROFILE_NULL
34 }; 34 };
35 35
36 // Used to access the web data service within a particular sync profile. 36 // Used to access the web data service within a particular sync profile.
37 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService( 37 autofill::AutofillWebDataService* GetWebDataService(
38 int index) WARN_UNUSED_RESULT; 38 int index) WARN_UNUSED_RESULT;
39 39
40 // Used to access the personal data manager within a particular sync profile. 40 // Used to access the personal data manager within a particular sync profile.
41 autofill::PersonalDataManager* GetPersonalDataManager( 41 autofill::PersonalDataManager* GetPersonalDataManager(
42 int index) WARN_UNUSED_RESULT; 42 int index) WARN_UNUSED_RESULT;
43 43
44 // Adds the form fields in |keys| to the WebDataService of sync profile 44 // Adds the form fields in |keys| to the WebDataService of sync profile
45 // |profile|. 45 // |profile|.
46 void AddKeys(int profile, const std::set<autofill::AutofillKey>& keys); 46 void AddKeys(int profile, const std::set<autofill::AutofillKey>& keys);
47 47
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Compares the autofill profiles for all sync profiles, and returns true if 102 // Compares the autofill profiles for all sync profiles, and returns true if
103 // they all match. 103 // they all match.
104 bool AllProfilesMatch() WARN_UNUSED_RESULT; 104 bool AllProfilesMatch() WARN_UNUSED_RESULT;
105 105
106 // Creates a test autofill profile based on the persona specified in |type|. 106 // Creates a test autofill profile based on the persona specified in |type|.
107 autofill::AutofillProfile CreateAutofillProfile(ProfileType type); 107 autofill::AutofillProfile CreateAutofillProfile(ProfileType type);
108 108
109 } // namespace autofill_helper 109 } // namespace autofill_helper
110 110
111 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 111 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_autofill_unittest.cc ('k') | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698