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

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

Issue 12695015: Split Autofill webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win build Created 7 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 | 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 15 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
16 16
17 class AutofillEntry; 17 class AutofillEntry;
18 class AutofillKey; 18 class AutofillKey;
19 class AutofillProfile; 19 class AutofillProfile;
20 class AutofillType; 20 class AutofillType;
21 class AutofillWebDataService;
21 class CreditCard; 22 class CreditCard;
22 class PersonalDataManager; 23 class PersonalDataManager;
23 class WebDataService;
24 24
25 namespace autofill_helper { 25 namespace autofill_helper {
26 26
27 enum ProfileType { 27 enum ProfileType {
28 PROFILE_MARION, 28 PROFILE_MARION,
29 PROFILE_HOMER, 29 PROFILE_HOMER,
30 PROFILE_FRASIER, 30 PROFILE_FRASIER,
31 PROFILE_NULL 31 PROFILE_NULL
32 }; 32 };
33 33
34 // Used to access the web data service within a particular sync profile. 34 // Used to access the web data service within a particular sync profile.
35 scoped_refptr<WebDataService> GetWebDataService(int index) WARN_UNUSED_RESULT; 35 scoped_refptr<AutofillWebDataService> GetWebDataService(
36 int index) WARN_UNUSED_RESULT;
36 37
37 // Used to access the personal data manager within a particular sync profile. 38 // Used to access the personal data manager within a particular sync profile.
38 PersonalDataManager* GetPersonalDataManager(int index) WARN_UNUSED_RESULT; 39 PersonalDataManager* GetPersonalDataManager(int index) WARN_UNUSED_RESULT;
39 40
40 // Adds the form fields in |keys| to the WebDataService of sync profile 41 // Adds the form fields in |keys| to the WebDataService of sync profile
41 // |profile|. 42 // |profile|.
42 void AddKeys(int profile, const std::set<AutofillKey>& keys); 43 void AddKeys(int profile, const std::set<AutofillKey>& keys);
43 44
44 // Removes the form field in |key| from the WebDataService of sync profile 45 // Removes the form field in |key| from the WebDataService of sync profile
45 // |profile|. 46 // |profile|.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Compares the autofill profiles for all sync profiles, and returns true if 97 // Compares the autofill profiles for all sync profiles, and returns true if
97 // they all match. 98 // they all match.
98 bool AllProfilesMatch() WARN_UNUSED_RESULT; 99 bool AllProfilesMatch() WARN_UNUSED_RESULT;
99 100
100 // Creates a test autofill profile based on the persona specified in |type|. 101 // Creates a test autofill profile based on the persona specified in |type|.
101 AutofillProfile CreateAutofillProfile(ProfileType type); 102 AutofillProfile CreateAutofillProfile(ProfileType type);
102 103
103 } // namespace autofill_helper 104 } // namespace autofill_helper
104 105
105 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 106 #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