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

Side by Side Diff: chrome/browser/webdata/autofill_profile_syncable_service.h

Issue 9668028: [Sync] Create new top-level sync/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 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 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ 4 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
5 #define CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ 5 #define CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
6 #pragma once 6 #pragma once
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "chrome/browser/autofill/autofill_type.h" 16 #include "chrome/browser/autofill/autofill_type.h"
17 #include "chrome/browser/sync/api/sync_change.h" 17 #include "chrome/browser/sync/api/sync_change.h"
18 #include "chrome/browser/sync/api/sync_data.h" 18 #include "chrome/browser/sync/api/sync_data.h"
19 #include "chrome/browser/sync/api/sync_error.h" 19 #include "chrome/browser/sync/api/sync_error.h"
20 #include "chrome/browser/sync/api/syncable_service.h" 20 #include "chrome/browser/sync/api/syncable_service.h"
21 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
22 #include "chrome/browser/webdata/autofill_change.h" 21 #include "chrome/browser/webdata/autofill_change.h"
23 #include "chrome/browser/webdata/autofill_entry.h" 22 #include "chrome/browser/webdata/autofill_entry.h"
24 #include "content/public/browser/notification_observer.h" 23 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 24 #include "content/public/browser/notification_registrar.h"
26 #include "content/public/browser/notification_types.h" 25 #include "content/public/browser/notification_types.h"
26 #include "sync/protocol/autofill_specifics.pb.h"
27 27
28 class AutofillProfile; 28 class AutofillProfile;
29 class AutofillTable; 29 class AutofillTable;
30 class FormGroup; 30 class FormGroup;
31 class ProfileSyncServiceAutofillTest; 31 class ProfileSyncServiceAutofillTest;
32 class WebDataService; 32 class WebDataService;
33 33
34 extern const char kAutofillProfileTag[]; 34 extern const char kAutofillProfileTag[];
35 35
36 // The sync implementation for AutofillProfiles. 36 // The sync implementation for AutofillProfiles.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 std::vector<AutofillProfile*> profiles_to_add; 177 std::vector<AutofillProfile*> profiles_to_add;
178 178
179 // When we go through sync we find profiles that are similar but unmatched. 179 // When we go through sync we find profiles that are similar but unmatched.
180 // Merge such profiles. 180 // Merge such profiles.
181 GUIDToProfileMap candidates_to_merge; 181 GUIDToProfileMap candidates_to_merge;
182 // Profiles that have multi-valued fields that are not in sync. 182 // Profiles that have multi-valued fields that are not in sync.
183 std::vector<AutofillProfile*> profiles_to_sync_back; 183 std::vector<AutofillProfile*> profiles_to_sync_back;
184 }; 184 };
185 185
186 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ 186 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autocomplete_syncable_service.cc ('k') | chrome/browser/webdata/autofill_profile_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698