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 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback_old.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "chrome/browser/sync/syncable/model_type.h" | 15 #include "chrome/browser/sync/syncable/model_type.h" |
16 | 16 |
17 namespace browser_sync { | 17 namespace browser_sync { |
18 | 18 |
19 enum ModelSafeGroup { | 19 enum ModelSafeGroup { |
20 GROUP_PASSIVE = 0, // Models that are just "passively" being synced; e.g. | 20 GROUP_PASSIVE = 0, // Models that are just "passively" being synced; e.g. |
21 // changes to these models don't need to be pushed to a | 21 // changes to these models don't need to be pushed to a |
22 // native model. | 22 // native model. |
23 GROUP_UI, // Models that live on UI thread and are being synced. | 23 GROUP_UI, // Models that live on UI thread and are being synced. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) = 0; | 93 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) = 0; |
94 protected: | 94 protected: |
95 virtual ~ModelSafeWorkerRegistrar() {} | 95 virtual ~ModelSafeWorkerRegistrar() {} |
96 private: | 96 private: |
97 DISALLOW_COPY_AND_ASSIGN(ModelSafeWorkerRegistrar); | 97 DISALLOW_COPY_AND_ASSIGN(ModelSafeWorkerRegistrar); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace browser_sync | 100 } // namespace browser_sync |
101 | 101 |
102 #endif // CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ | 102 #endif // CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ |
OLD | NEW |