| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/webdata/autofill_entry.h" | 22 #include "chrome/browser/webdata/autofill_entry.h" |
| 23 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
| 24 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
| 25 #include "content/public/browser/notification_types.h" | 25 #include "content/public/browser/notification_types.h" |
| 26 | 26 |
| 27 class AutofillProfile; | 27 class AutofillProfile; |
| 28 class AutofillTable; | 28 class AutofillTable; |
| 29 class ProfileSyncServiceAutofillTest; | 29 class ProfileSyncServiceAutofillTest; |
| 30 class WebDataService; | 30 class WebDataService; |
| 31 | 31 |
| 32 namespace browser_sync { | |
| 33 class UnrecoverableErrorHandler; | |
| 34 } | |
| 35 | |
| 36 extern const char kAutofillProfileTag[]; | 32 extern const char kAutofillProfileTag[]; |
| 37 | 33 |
| 38 // The sync implementation for AutofillProfiles. | 34 // The sync implementation for AutofillProfiles. |
| 39 // MergeDataAndStartSyncing() called first, it does cloud->local and | 35 // MergeDataAndStartSyncing() called first, it does cloud->local and |
| 40 // local->cloud syncs. Then for each cloud change we receive | 36 // local->cloud syncs. Then for each cloud change we receive |
| 41 // ProcessSyncChanges() and for each local change Observe() is called. | 37 // ProcessSyncChanges() and for each local change Observe() is called. |
| 42 class AutofillProfileSyncableService | 38 class AutofillProfileSyncableService |
| 43 : public SyncableService, | 39 : public SyncableService, |
| 44 public content::NotificationObserver, | 40 public content::NotificationObserver, |
| 45 public base::NonThreadSafe { | 41 public base::NonThreadSafe { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 struct AutofillProfileSyncableService::DataBundle { | 146 struct AutofillProfileSyncableService::DataBundle { |
| 151 DataBundle(); | 147 DataBundle(); |
| 152 ~DataBundle(); | 148 ~DataBundle(); |
| 153 | 149 |
| 154 std::vector<std::string> profiles_to_delete; | 150 std::vector<std::string> profiles_to_delete; |
| 155 std::vector<AutofillProfile*> profiles_to_update; | 151 std::vector<AutofillProfile*> profiles_to_update; |
| 156 std::vector<AutofillProfile*> profiles_to_add; | 152 std::vector<AutofillProfile*> profiles_to_add; |
| 157 }; | 153 }; |
| 158 | 154 |
| 159 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ | 155 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ |
| OLD | NEW |