| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|