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

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

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 syncer { 14 namespace syncer {
15 15
16 // Implementation of ModelSafeWorker for passive types. All work is 16 // Implementation of ModelSafeWorker for passive types. All work is
17 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync 17 // done on the same thread DoWorkAndWaitUntilDone (i.e., the sync
18 // thread). 18 // thread).
19 class SYNC_EXPORT PassiveModelWorker : public ModelSafeWorker { 19 class SYNC_EXPORT PassiveModelWorker : public ModelSafeWorker {
20 public: 20 public:
21 explicit PassiveModelWorker(const base::MessageLoop* sync_loop, 21 explicit PassiveModelWorker(const base::MessageLoop* sync_loop,
22 WorkerLoopDestructionObserver* observer); 22 WorkerLoopDestructionObserver* observer);
23 23
24 // ModelSafeWorker implementation. Called on the sync thread. 24 // ModelSafeWorker implementation. Called on the sync thread.
25 virtual void RegisterForLoopDestruction() OVERRIDE; 25 virtual void RegisterForLoopDestruction() override;
26 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE; 26 virtual ModelSafeGroup GetModelSafeGroup() override;
27 27
28 protected: 28 protected:
29 virtual SyncerError DoWorkAndWaitUntilDoneImpl( 29 virtual SyncerError DoWorkAndWaitUntilDoneImpl(
30 const WorkCallback& work) OVERRIDE; 30 const WorkCallback& work) override;
31 31
32 private: 32 private:
33 virtual ~PassiveModelWorker(); 33 virtual ~PassiveModelWorker();
34 34
35 const base::MessageLoop* const sync_loop_; 35 const base::MessageLoop* const sync_loop_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker); 37 DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker);
38 }; 38 };
39 39
40 } // namespace syncer 40 } // namespace syncer
41 41
42 #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/internal_api/public/engine/model_safe_worker.h ('k') | sync/internal_api/public/events/commit_request_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698