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

Side by Side Diff: components/sync/engine/sync_manager.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_SYNC_MANAGER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Carries shutdown requests across threads and will be used to cut short 262 // Carries shutdown requests across threads and will be used to cut short
263 // any network I/O and tell the syncer to exit early. 263 // any network I/O and tell the syncer to exit early.
264 // 264 //
265 // Must outlive SyncManager. 265 // Must outlive SyncManager.
266 CancelationSignal* cancelation_signal; 266 CancelationSignal* cancelation_signal;
267 267
268 // Optional nigori state to be restored. 268 // Optional nigori state to be restored.
269 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state; 269 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state;
270 }; 270 };
271 271
272 typedef base::Callback<void(void)> ClearServerDataCallback; 272 using ClearServerDataCallback = base::Callback<void(void)>;
273 273
274 SyncManager(); 274 SyncManager();
275 virtual ~SyncManager(); 275 virtual ~SyncManager();
276 276
277 // Initialize the sync manager using arguments from |args|. 277 // Initialize the sync manager using arguments from |args|.
278 // 278 //
279 // Note, args is passed by non-const pointer because it contains objects like 279 // Note, args is passed by non-const pointer because it contains objects like
280 // unique_ptr. 280 // unique_ptr.
281 virtual void Init(InitArgs* args) = 0; 281 virtual void Init(InitArgs* args) = 0;
282 282
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // Note: this does not trigger a sync cycle. It just updates the sync context. 410 // Note: this does not trigger a sync cycle. It just updates the sync context.
411 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 411 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
412 412
413 // Adds memory usage statistics to |pmd| for chrome://tracing. 413 // Adds memory usage statistics to |pmd| for chrome://tracing.
414 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0; 414 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) = 0;
415 }; 415 };
416 416
417 } // namespace syncer 417 } // namespace syncer
418 418
419 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 419 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_engine.h ('k') | components/sync/engine_impl/attachments/attachment_downloader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698