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

Side by Side Diff: components/sync/engine_impl/sync_manager_impl.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_IMPL_SYNC_MANAGER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 int total_count; 194 int total_count;
195 std::string payload; 195 std::string payload;
196 196
197 // Returned pointer owned by the caller. 197 // Returned pointer owned by the caller.
198 base::DictionaryValue* ToValue() const; 198 base::DictionaryValue* ToValue() const;
199 }; 199 };
200 200
201 base::TimeDelta GetNudgeDelayTimeDelta(const ModelType& model_type); 201 base::TimeDelta GetNudgeDelayTimeDelta(const ModelType& model_type);
202 202
203 typedef std::map<ModelType, NotificationInfo> NotificationInfoMap; 203 using NotificationInfoMap = std::map<ModelType, NotificationInfo>;
204 204
205 // Determine if the parents or predecessors differ between the old and new 205 // Determine if the parents or predecessors differ between the old and new
206 // versions of an entry. Note that a node's index may change without its 206 // versions of an entry. Note that a node's index may change without its
207 // UNIQUE_POSITION changing if its sibling nodes were changed. To handle such 207 // UNIQUE_POSITION changing if its sibling nodes were changed. To handle such
208 // cases, we rely on the caller to treat a position update on any sibling as 208 // cases, we rely on the caller to treat a position update on any sibling as
209 // updating the positions of all siblings. 209 // updating the positions of all siblings.
210 bool VisiblePositionsDiffer( 210 bool VisiblePositionsDiffer(
211 const syncable::EntryKernelMutation& mutation) const; 211 const syncable::EntryKernelMutation& mutation) const;
212 212
213 // Determine if any of the fields made visible to clients of the Sync API 213 // Determine if any of the fields made visible to clients of the Sync API
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // A multi-purpose status watch object that aggregates stats from various 284 // A multi-purpose status watch object that aggregates stats from various
285 // sync components. 285 // sync components.
286 AllStatus allstatus_; 286 AllStatus allstatus_;
287 287
288 // Each element of this map is a store of change records produced by 288 // Each element of this map is a store of change records produced by
289 // HandleChangeEventFromSyncer during the CALCULATE_CHANGES step. The changes 289 // HandleChangeEventFromSyncer during the CALCULATE_CHANGES step. The changes
290 // are grouped by model type, and are stored here in tree order to be 290 // are grouped by model type, and are stored here in tree order to be
291 // forwarded to the observer slightly later, at the TRANSACTION_ENDING step 291 // forwarded to the observer slightly later, at the TRANSACTION_ENDING step
292 // by HandleTransactionEndingChangeEvent. The list is cleared after observer 292 // by HandleTransactionEndingChangeEvent. The list is cleared after observer
293 // finishes processing. 293 // finishes processing.
294 typedef std::map<int, ImmutableChangeRecordList> ChangeRecordMap; 294 using ChangeRecordMap = std::map<int, ImmutableChangeRecordList>;
295 ChangeRecordMap change_records_; 295 ChangeRecordMap change_records_;
296 296
297 SyncManager::ChangeDelegate* change_delegate_; 297 SyncManager::ChangeDelegate* change_delegate_;
298 298
299 // Set to true once Init has been called. 299 // Set to true once Init has been called.
300 bool initialized_; 300 bool initialized_;
301 301
302 bool observing_network_connectivity_changes_; 302 bool observing_network_connectivity_changes_;
303 303
304 // Map used to store the notification info to be displayed in 304 // Map used to store the notification info to be displayed in
(...skipping 18 matching lines...) Expand all
323 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 323 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
324 324
325 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 325 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
326 326
327 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 327 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
328 }; 328 };
329 329
330 } // namespace syncer 330 } // namespace syncer
331 331
332 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 332 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/process_updates_util.h ('k') | components/sync/engine_impl/sync_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698