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

Side by Side Diff: sync/engine/directory_update_handler.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ 5 #ifndef SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_
6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ 6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class SYNC_EXPORT_PRIVATE DirectoryUpdateHandler : public UpdateHandler { 44 class SYNC_EXPORT_PRIVATE DirectoryUpdateHandler : public UpdateHandler {
45 public: 45 public:
46 DirectoryUpdateHandler(syncable::Directory* dir, 46 DirectoryUpdateHandler(syncable::Directory* dir,
47 ModelType type, 47 ModelType type,
48 scoped_refptr<ModelSafeWorker> worker, 48 scoped_refptr<ModelSafeWorker> worker,
49 DirectoryTypeDebugInfoEmitter* debug_info_emitter); 49 DirectoryTypeDebugInfoEmitter* debug_info_emitter);
50 virtual ~DirectoryUpdateHandler(); 50 virtual ~DirectoryUpdateHandler();
51 51
52 // UpdateHandler implementation. 52 // UpdateHandler implementation.
53 virtual void GetDownloadProgress( 53 virtual void GetDownloadProgress(
54 sync_pb::DataTypeProgressMarker* progress_marker) const OVERRIDE; 54 sync_pb::DataTypeProgressMarker* progress_marker) const override;
55 virtual void GetDataTypeContext(sync_pb::DataTypeContext* context) const 55 virtual void GetDataTypeContext(sync_pb::DataTypeContext* context) const
56 OVERRIDE; 56 override;
57 virtual SyncerError ProcessGetUpdatesResponse( 57 virtual SyncerError ProcessGetUpdatesResponse(
58 const sync_pb::DataTypeProgressMarker& progress_marker, 58 const sync_pb::DataTypeProgressMarker& progress_marker,
59 const sync_pb::DataTypeContext& mutated_context, 59 const sync_pb::DataTypeContext& mutated_context,
60 const SyncEntityList& applicable_updates, 60 const SyncEntityList& applicable_updates,
61 sessions::StatusController* status) OVERRIDE; 61 sessions::StatusController* status) override;
62 virtual void ApplyUpdates(sessions::StatusController* status) OVERRIDE; 62 virtual void ApplyUpdates(sessions::StatusController* status) override;
63 virtual void PassiveApplyUpdates(sessions::StatusController* status) OVERRIDE; 63 virtual void PassiveApplyUpdates(sessions::StatusController* status) override;
64 64
65 private: 65 private:
66 friend class DirectoryUpdateHandlerApplyUpdateTest; 66 friend class DirectoryUpdateHandlerApplyUpdateTest;
67 friend class DirectoryUpdateHandlerProcessUpdateTest; 67 friend class DirectoryUpdateHandlerProcessUpdateTest;
68 68
69 // Sometimes there is nothing to do, so we can return without doing anything. 69 // Sometimes there is nothing to do, so we can return without doing anything.
70 bool IsApplyUpdatesRequired(); 70 bool IsApplyUpdatesRequired();
71 71
72 // Processes the given SyncEntities and stores their data in the directory. 72 // Processes the given SyncEntities and stores their data in the directory.
73 // Their types must match this update handler's type. 73 // Their types must match this update handler's type.
(...skipping 24 matching lines...) Expand all
98 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; 98 DirectoryTypeDebugInfoEmitter* debug_info_emitter_;
99 99
100 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; 100 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); 102 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler);
103 }; 103 };
104 104
105 } // namespace syncer 105 } // namespace syncer
106 106
107 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ 107 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_
OLDNEW
« no previous file with comments | « sync/engine/directory_commit_contributor.h ('k') | sync/engine/directory_update_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698