| 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_SYNC_BUNDLE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "components/sync/model/sync_change.h" | 13 #include "components/sync/model/sync_change.h" |
| 14 #include "components/sync/model/sync_change_processor.h" | 14 #include "components/sync/model/sync_change_processor.h" |
| 15 #include "components/sync/model/sync_data.h" | 15 #include "components/sync/model/sync_data.h" |
| 16 | 16 |
| 17 class ExtensionSyncService; | |
| 18 | |
| 19 namespace extensions { | 17 namespace extensions { |
| 20 | 18 |
| 21 class ExtensionSyncData; | 19 class ExtensionSyncData; |
| 22 | 20 |
| 23 class SyncBundle { | 21 class SyncBundle { |
| 24 public: | 22 public: |
| 25 SyncBundle(); | 23 SyncBundle(); |
| 26 ~SyncBundle(); | 24 ~SyncBundle(); |
| 27 | 25 |
| 28 void StartSyncing( | 26 void StartSyncing( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // server until we've installed the extension locally, to prevent the sync | 87 // server until we've installed the extension locally, to prevent the sync |
| 90 // state from flipping back and forth until all clients are up to date. | 88 // state from flipping back and forth until all clients are up to date. |
| 91 std::map<std::string, ExtensionSyncData> pending_sync_data_; | 89 std::map<std::string, ExtensionSyncData> pending_sync_data_; |
| 92 | 90 |
| 93 DISALLOW_COPY_AND_ASSIGN(SyncBundle); | 91 DISALLOW_COPY_AND_ASSIGN(SyncBundle); |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace extensions | 94 } // namespace extensions |
| 97 | 95 |
| 98 #endif // CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_ | 96 #endif // CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_ |
| OLD | NEW |