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

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

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

Powered by Google App Engine
This is Rietveld 408576698