OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ | 4 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ |
5 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ | 5 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVI
CE_H_ |
6 | 6 |
7 #if !defined(AUTOFILL_ENABLE_SYNC) | 7 #if !defined(AUTOFILL_ENABLE_SYNC) |
8 #error "This file should be built only when sync is enabled in Autofill" | 8 #error "This file should be built only when sync is enabled in Autofill" |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 24 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
25 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" | 25 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" |
26 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse
rver.h" | 26 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse
rver.h" |
27 #include "sync/api/sync_change.h" | 27 #include "sync/api/sync_change.h" |
28 #include "sync/api/sync_data.h" | 28 #include "sync/api/sync_data.h" |
29 #include "sync/api/sync_error.h" | 29 #include "sync/api/sync_error.h" |
30 #include "sync/api/syncable_service.h" | 30 #include "sync/api/syncable_service.h" |
31 #include "sync/protocol/autofill_specifics.pb.h" | 31 #include "sync/protocol/autofill_specifics.pb.h" |
32 | 32 |
33 class ProfileSyncServiceAutofillTest; | 33 class ProfileSyncServiceAutofillTest; |
34 class WebDataServiceBase; | |
35 | 34 |
36 namespace autofill { | 35 namespace autofill { |
37 | 36 |
38 class AutofillProfile; | 37 class AutofillProfile; |
39 class AutofillTable; | 38 class AutofillTable; |
40 class AutofillWebDataService; | 39 class AutofillWebDataService; |
41 class FormGroup; | |
42 | 40 |
43 extern const char kAutofillProfileTag[]; | 41 extern const char kAutofillProfileTag[]; |
44 | 42 |
45 // The sync implementation for AutofillProfiles. | 43 // The sync implementation for AutofillProfiles. |
46 // MergeDataAndStartSyncing() called first, it does cloud->local and | 44 // MergeDataAndStartSyncing() called first, it does cloud->local and |
47 // local->cloud syncs. Then for each cloud change we receive | 45 // local->cloud syncs. Then for each cloud change we receive |
48 // ProcessSyncChanges() and for each local change Observe() is called. | 46 // ProcessSyncChanges() and for each local change Observe() is called. |
49 class AutofillProfileSyncableService | 47 class AutofillProfileSyncableService |
50 : public base::SupportsUserData::Data, | 48 : public base::SupportsUserData::Data, |
51 public syncer::SyncableService, | 49 public syncer::SyncableService, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // When we go through sync we find profiles that are similar but unmatched. | 212 // When we go through sync we find profiles that are similar but unmatched. |
215 // Merge such profiles. | 213 // Merge such profiles. |
216 GUIDToProfileMap candidates_to_merge; | 214 GUIDToProfileMap candidates_to_merge; |
217 // Profiles that have multi-valued fields that are not in sync. | 215 // Profiles that have multi-valued fields that are not in sync. |
218 std::vector<AutofillProfile*> profiles_to_sync_back; | 216 std::vector<AutofillProfile*> profiles_to_sync_back; |
219 }; | 217 }; |
220 | 218 |
221 } // namespace autofill | 219 } // namespace autofill |
222 | 220 |
223 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SE
RVICE_H_ | 221 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SE
RVICE_H_ |
OLD | NEW |