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

Side by Side Diff: sync/engine/model_type_sync_worker_impl.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_MODEL_TYPE_SYNC_WORKER_IMPL_H_ 5 #ifndef SYNC_ENGINE_MODEL_TYPE_SYNC_WORKER_IMPL_H_
6 #define SYNC_ENGINE_MODEL_TYPE_SYNC_WORKER_IMPL_H_ 6 #define SYNC_ENGINE_MODEL_TYPE_SYNC_WORKER_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 scoped_ptr<ModelTypeSyncProxy> type_sync_proxy); 61 scoped_ptr<ModelTypeSyncProxy> type_sync_proxy);
62 virtual ~ModelTypeSyncWorkerImpl(); 62 virtual ~ModelTypeSyncWorkerImpl();
63 63
64 ModelType GetModelType() const; 64 ModelType GetModelType() const;
65 65
66 bool IsEncryptionRequired() const; 66 bool IsEncryptionRequired() const;
67 void UpdateCryptographer(scoped_ptr<Cryptographer> cryptographer); 67 void UpdateCryptographer(scoped_ptr<Cryptographer> cryptographer);
68 68
69 // UpdateHandler implementation. 69 // UpdateHandler implementation.
70 virtual void GetDownloadProgress( 70 virtual void GetDownloadProgress(
71 sync_pb::DataTypeProgressMarker* progress_marker) const OVERRIDE; 71 sync_pb::DataTypeProgressMarker* progress_marker) const override;
72 virtual void GetDataTypeContext( 72 virtual void GetDataTypeContext(
73 sync_pb::DataTypeContext* context) const OVERRIDE; 73 sync_pb::DataTypeContext* context) const override;
74 virtual SyncerError ProcessGetUpdatesResponse( 74 virtual SyncerError ProcessGetUpdatesResponse(
75 const sync_pb::DataTypeProgressMarker& progress_marker, 75 const sync_pb::DataTypeProgressMarker& progress_marker,
76 const sync_pb::DataTypeContext& mutated_context, 76 const sync_pb::DataTypeContext& mutated_context,
77 const SyncEntityList& applicable_updates, 77 const SyncEntityList& applicable_updates,
78 sessions::StatusController* status) OVERRIDE; 78 sessions::StatusController* status) override;
79 virtual void ApplyUpdates(sessions::StatusController* status) OVERRIDE; 79 virtual void ApplyUpdates(sessions::StatusController* status) override;
80 virtual void PassiveApplyUpdates(sessions::StatusController* status) OVERRIDE; 80 virtual void PassiveApplyUpdates(sessions::StatusController* status) override;
81 81
82 // ModelTypeSyncWorker implementation. 82 // ModelTypeSyncWorker implementation.
83 virtual void EnqueueForCommit( 83 virtual void EnqueueForCommit(
84 const CommitRequestDataList& request_list) OVERRIDE; 84 const CommitRequestDataList& request_list) override;
85 85
86 // CommitContributor implementation. 86 // CommitContributor implementation.
87 virtual scoped_ptr<CommitContribution> GetContribution( 87 virtual scoped_ptr<CommitContribution> GetContribution(
88 size_t max_entries) OVERRIDE; 88 size_t max_entries) override;
89 89
90 // Callback for when our contribution gets a response. 90 // Callback for when our contribution gets a response.
91 void OnCommitResponse(const CommitResponseDataList& response_list); 91 void OnCommitResponse(const CommitResponseDataList& response_list);
92 92
93 base::WeakPtr<ModelTypeSyncWorkerImpl> AsWeakPtr(); 93 base::WeakPtr<ModelTypeSyncWorkerImpl> AsWeakPtr();
94 94
95 private: 95 private:
96 typedef std::map<std::string, EntityTracker*> EntityMap; 96 typedef std::map<std::string, EntityTracker*> EntityMap;
97 typedef std::map<std::string, UpdateResponseData*> UpdateMap; 97 typedef std::map<std::string, UpdateResponseData*> UpdateMap;
98 98
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // the steady state. 164 // the steady state.
165 EntityMap entities_; 165 EntityMap entities_;
166 STLValueDeleter<EntityMap> entities_deleter_; 166 STLValueDeleter<EntityMap> entities_deleter_;
167 167
168 base::WeakPtrFactory<ModelTypeSyncWorkerImpl> weak_ptr_factory_; 168 base::WeakPtrFactory<ModelTypeSyncWorkerImpl> weak_ptr_factory_;
169 }; 169 };
170 170
171 } // namespace syncer 171 } // namespace syncer
172 172
173 #endif // SYNC_ENGINE_MODEL_TYPE_SYNC_WORKER_IMPL_H_ 173 #endif // SYNC_ENGINE_MODEL_TYPE_SYNC_WORKER_IMPL_H_
OLDNEW
« no previous file with comments | « sync/engine/get_updates_processor_unittest.cc ('k') | sync/engine/net/server_connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698