Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Side by Side Diff: chrome/browser/sync/engine/model_safe_worker.h

Issue 7891054: Add GROUP_FILE ModelSafeGroup (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix worker count in unittest Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_old.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 base { 17 namespace base {
18 class DictionaryValue; 18 class DictionaryValue;
19 } // namespace 19 } // namespace
20 20
21 namespace browser_sync { 21 namespace browser_sync {
22 22
23 enum ModelSafeGroup { 23 enum ModelSafeGroup {
24 GROUP_PASSIVE = 0, // Models that are just "passively" being synced; e.g. 24 GROUP_PASSIVE = 0, // Models that are just "passively" being synced; e.g.
25 // changes to these models don't need to be pushed to a 25 // changes to these models don't need to be pushed to a
26 // native model. 26 // native model.
27 GROUP_UI, // Models that live on UI thread and are being synced. 27 GROUP_UI, // Models that live on UI thread and are being synced.
28 GROUP_DB, // Models that live on DB thread and are being synced. 28 GROUP_DB, // Models that live on DB thread and are being synced.
29 GROUP_FILE, // Models that live on FILE thread and are being synced.
29 GROUP_HISTORY, // Models that live on history thread and are being 30 GROUP_HISTORY, // Models that live on history thread and are being
30 // synced. 31 // synced.
31 GROUP_PASSWORD, // Models that live on the password thread and are 32 GROUP_PASSWORD, // Models that live on the password thread and are
32 // being synced. On windows and linux, this runs on the 33 // being synced. On windows and linux, this runs on the
33 // DB thread. 34 // DB thread.
34 MODEL_SAFE_GROUP_COUNT, 35 MODEL_SAFE_GROUP_COUNT,
35 }; 36 };
36 37
37 std::string ModelSafeGroupToString(ModelSafeGroup group); 38 std::string ModelSafeGroupToString(ModelSafeGroup group);
38 39
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) = 0; 102 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) = 0;
102 protected: 103 protected:
103 virtual ~ModelSafeWorkerRegistrar() {} 104 virtual ~ModelSafeWorkerRegistrar() {}
104 private: 105 private:
105 DISALLOW_COPY_AND_ASSIGN(ModelSafeWorkerRegistrar); 106 DISALLOW_COPY_AND_ASSIGN(ModelSafeWorkerRegistrar);
106 }; 107 };
107 108
108 } // namespace browser_sync 109 } // namespace browser_sync
109 110
110 #endif // CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_ 111 #endif // CHROME_BROWSER_SYNC_ENGINE_MODEL_SAFE_WORKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/mock_model_safe_workers.cc ('k') | chrome/browser/sync/engine/model_safe_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698