| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
| 14 #include "base/version.h" | 14 #include "base/version.h" |
| 15 #include "chrome/browser/extensions/sync_bundle.h" | 15 #include "chrome/browser/extensions/sync_bundle.h" |
| 16 #include "components/keyed_service/core/keyed_service.h" | 16 #include "components/keyed_service/core/keyed_service.h" |
| 17 #include "components/sync/api/syncable_service.h" |
| 17 #include "extensions/browser/extension_prefs_observer.h" | 18 #include "extensions/browser/extension_prefs_observer.h" |
| 18 #include "extensions/browser/extension_registry_observer.h" | 19 #include "extensions/browser/extension_registry_observer.h" |
| 19 #include "sync/api/syncable_service.h" | |
| 20 | 20 |
| 21 class ExtensionService; | 21 class ExtensionService; |
| 22 class Profile; | 22 class Profile; |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 class Extension; | 25 class Extension; |
| 26 class ExtensionSet; | 26 class ExtensionSet; |
| 27 class ExtensionSyncData; | 27 class ExtensionSyncData; |
| 28 } // namespace extensions | 28 } // namespace extensions |
| 29 | 29 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // Run()ning tells sync to try and start soon, because syncable changes | 152 // Run()ning tells sync to try and start soon, because syncable changes |
| 153 // have started happening. It will cause sync to call us back | 153 // have started happening. It will cause sync to call us back |
| 154 // asynchronously via MergeDataAndStartSyncing as soon as possible. | 154 // asynchronously via MergeDataAndStartSyncing as soon as possible. |
| 155 syncer::SyncableService::StartSyncFlare flare_; | 155 syncer::SyncableService::StartSyncFlare flare_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); | 157 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
| OLD | NEW |