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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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/nudge_source.cc ('k') | sync/engine/passive_model_worker.cc » ('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 CHROME_BROWSER_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_ 5 #ifndef SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_ 6 #define SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/sync/engine/model_safe_worker.h" 11 #include "sync/engine/model_safe_worker.h"
12 #include "chrome/browser/sync/internal_api/includes/syncer_error.h" 12 #include "sync/util/syncer_error.h"
13 13
14 class MessageLoop; 14 class MessageLoop;
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 // Implementation of ModelSafeWorker for passive types. All work is 18 // Implementation of ModelSafeWorker for passive types. All work is
19 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync 19 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync
20 // thread). 20 // thread).
21 class PassiveModelWorker : public ModelSafeWorker { 21 class PassiveModelWorker : public ModelSafeWorker {
22 public: 22 public:
23 explicit PassiveModelWorker(const MessageLoop* sync_loop); 23 explicit PassiveModelWorker(const MessageLoop* sync_loop);
24 24
25 // ModelSafeWorker implementation. Called on the sync thread. 25 // ModelSafeWorker implementation. Called on the sync thread.
26 virtual SyncerError DoWorkAndWaitUntilDone( 26 virtual SyncerError DoWorkAndWaitUntilDone(
27 const WorkCallback& work) OVERRIDE; 27 const WorkCallback& work) OVERRIDE;
28 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE; 28 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE;
29 29
30 private: 30 private:
31 virtual ~PassiveModelWorker(); 31 virtual ~PassiveModelWorker();
32 32
33 const MessageLoop* const sync_loop_; 33 const MessageLoop* const sync_loop_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker); 35 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker);
36 }; 36 };
37 37
38 } // namespace browser_sync 38 } // namespace browser_sync
39 39
40 #endif // CHROME_BROWSER_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_ 40 #endif // SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_
OLDNEW
« no previous file with comments | « sync/engine/nudge_source.cc ('k') | sync/engine/passive_model_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698