| OLD | NEW |
| 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> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 public: | 44 public: |
| 45 explicit AutofillProfileSyncableService(WebDataService* web_data_service); | 45 explicit AutofillProfileSyncableService(WebDataService* web_data_service); |
| 46 virtual ~AutofillProfileSyncableService(); | 46 virtual ~AutofillProfileSyncableService(); |
| 47 | 47 |
| 48 static syncable::ModelType model_type() { return syncable::AUTOFILL_PROFILE; } | 48 static syncable::ModelType model_type() { return syncable::AUTOFILL_PROFILE; } |
| 49 | 49 |
| 50 // SyncableService implementation. | 50 // SyncableService implementation. |
| 51 virtual SyncError MergeDataAndStartSyncing( | 51 virtual SyncError MergeDataAndStartSyncing( |
| 52 syncable::ModelType type, | 52 syncable::ModelType type, |
| 53 const SyncDataList& initial_sync_data, | 53 const SyncDataList& initial_sync_data, |
| 54 SyncChangeProcessor* sync_processor) OVERRIDE; | 54 scoped_ptr<SyncChangeProcessor> sync_processor) OVERRIDE; |
| 55 virtual void StopSyncing(syncable::ModelType type) OVERRIDE; | 55 virtual void StopSyncing(syncable::ModelType type) OVERRIDE; |
| 56 virtual SyncDataList GetAllSyncData(syncable::ModelType type) const OVERRIDE; | 56 virtual SyncDataList GetAllSyncData(syncable::ModelType type) const OVERRIDE; |
| 57 virtual SyncError ProcessSyncChanges( | 57 virtual SyncError ProcessSyncChanges( |
| 58 const tracked_objects::Location& from_here, | 58 const tracked_objects::Location& from_here, |
| 59 const SyncChangeList& change_list) OVERRIDE; | 59 const SyncChangeList& change_list) OVERRIDE; |
| 60 | 60 |
| 61 // content::NotificationObserver implementation. | 61 // content::NotificationObserver implementation. |
| 62 virtual void Observe(int type, | 62 virtual void Observe(int type, |
| 63 const content::NotificationSource& source, | 63 const content::NotificationSource& source, |
| 64 const content::NotificationDetails& details) OVERRIDE; | 64 const content::NotificationDetails& details) OVERRIDE; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |