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

Side by Side Diff: sync/internal_api/public/engine/passive_model_worker.h

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « sync/engine/sync_scheduler_impl.h ('k') | sync/internal_api/public/http_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "sync/base/sync_export.h" 10 #include "sync/base/sync_export.h"
11 #include "sync/internal_api/public/engine/model_safe_worker.h" 11 #include "sync/internal_api/public/engine/model_safe_worker.h"
12 #include "sync/internal_api/public/util/syncer_error.h" 12 #include "sync/internal_api/public/util/syncer_error.h"
13 13
14 namespace base {
14 class MessageLoop; 15 class MessageLoop;
16 }
15 17
16 namespace syncer { 18 namespace syncer {
17 19
18 // Implementation of ModelSafeWorker for passive types. All work is 20 // Implementation of ModelSafeWorker for passive types. All work is
19 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync 21 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync
20 // thread). 22 // thread).
21 class SYNC_EXPORT PassiveModelWorker : public ModelSafeWorker { 23 class SYNC_EXPORT PassiveModelWorker : public ModelSafeWorker {
22 public: 24 public:
23 explicit PassiveModelWorker(const MessageLoop* sync_loop); 25 explicit PassiveModelWorker(const base::MessageLoop* sync_loop);
24 26
25 // ModelSafeWorker implementation. Called on the sync thread. 27 // ModelSafeWorker implementation. Called on the sync thread.
26 virtual SyncerError DoWorkAndWaitUntilDone( 28 virtual SyncerError DoWorkAndWaitUntilDone(
27 const WorkCallback& work) OVERRIDE; 29 const WorkCallback& work) OVERRIDE;
28 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE; 30 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE;
29 31
30 private: 32 private:
31 virtual ~PassiveModelWorker(); 33 virtual ~PassiveModelWorker();
32 34
33 const MessageLoop* const sync_loop_; 35 const base::MessageLoop* const sync_loop_;
34 36
35 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker); 37 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker);
36 }; 38 };
37 39
38 } // namespace syncer 40 } // namespace syncer
39 41
40 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_ 42 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler_impl.h ('k') | sync/internal_api/public/http_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698