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

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

Issue 2942773002: Task Scheduler API migration: change BrowserThreadModelWorker to SequencedModelWorker (Closed)
Patch Set: Created 3 years, 6 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
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 COMPONENTS_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_
6 #define COMPONENTS_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_ 6 #define COMPONENTS_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/sync/engine/model_safe_worker.h" 9 #include "components/sync/engine/model_safe_worker.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 // Implementation of ModelSafeWorker for passive types. All work is 13 // Implementation of ModelSafeWorker for passive types. All work is
14 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync 14 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync
skym 2017/06/16 17:26:52 update to sequence?
stanisc 2017/06/19 19:14:05 Done.
15 // thread). 15 // thread).
16 class PassiveModelWorker : public ModelSafeWorker { 16 class PassiveModelWorker : public ModelSafeWorker {
17 public: 17 public:
18 PassiveModelWorker(); 18 PassiveModelWorker();
19 19
20 // ModelSafeWorker implementation. 20 // ModelSafeWorker implementation.
21 ModelSafeGroup GetModelSafeGroup() override; 21 ModelSafeGroup GetModelSafeGroup() override;
22 bool IsOnModelThread() override; 22 bool IsOnModelSequence() override;
23 23
24 private: 24 private:
25 ~PassiveModelWorker() override; 25 ~PassiveModelWorker() override;
26 26
27 void ScheduleWork(base::OnceClosure work) override; 27 void ScheduleWork(base::OnceClosure work) override;
28 28
29 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker); 29 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker);
30 }; 30 };
31 31
32 } // namespace syncer 32 } // namespace syncer
33 33
34 #endif // COMPONENTS_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_ 34 #endif // COMPONENTS_SYNC_ENGINE_PASSIVE_MODEL_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698