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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 29 matching lines...) Expand all
40 class ChangeProcessor; 40 class ChangeProcessor;
41 class SyncBackendHostCore; 41 class SyncBackendHostCore;
42 class SyncBackendRegistrar; 42 class SyncBackendRegistrar;
43 class SyncClient; 43 class SyncClient;
44 class SyncPrefs; 44 class SyncPrefs;
45 45
46 // The only real implementation of the SyncEngine. See that interface's 46 // The only real implementation of the SyncEngine. See that interface's
47 // definition for documentation of public methods. 47 // definition for documentation of public methods.
48 class SyncBackendHostImpl : public SyncEngine, public InvalidationHandler { 48 class SyncBackendHostImpl : public SyncEngine, public InvalidationHandler {
49 public: 49 public:
50 typedef SyncStatus Status; 50 using Status = SyncStatus;
51 51
52 SyncBackendHostImpl(const std::string& name, 52 SyncBackendHostImpl(const std::string& name,
53 SyncClient* sync_client, 53 SyncClient* sync_client,
54 invalidation::InvalidationService* invalidator, 54 invalidation::InvalidationService* invalidator,
55 const base::WeakPtr<SyncPrefs>& sync_prefs, 55 const base::WeakPtr<SyncPrefs>& sync_prefs,
56 const base::FilePath& sync_data_folder); 56 const base::FilePath& sync_data_folder);
57 ~SyncBackendHostImpl() override; 57 ~SyncBackendHostImpl() override;
58 58
59 // SyncEngine implementation. 59 // SyncEngine implementation.
60 void Initialize(InitParams params) override; 60 void Initialize(InitParams params) override;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 base::ThreadChecker thread_checker_; 228 base::ThreadChecker thread_checker_;
229 229
230 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 230 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 232 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
233 }; 233 };
234 234
235 } // namespace syncer 235 } // namespace syncer
236 236
237 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 237 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/driver/generic_change_processor.h ('k') | components/sync/driver/shared_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698