| OLD | NEW |
| 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 // An InternalComponentsFactory implementation designed for real production / | 5 // An InternalComponentsFactory implementation designed for real production / |
| 6 // normal use. | 6 // normal use. |
| 7 | 7 |
| 8 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ | 8 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ |
| 9 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ | 9 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ |
| 10 | 10 |
| 11 #include "sync/base/sync_export.h" | 11 #include "sync/base/sync_export.h" |
| 12 #include "sync/internal_api/public/internal_components_factory.h" | 12 #include "sync/internal_api/public/internal_components_factory.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 15 | 15 |
| 16 class SYNC_EXPORT InternalComponentsFactoryImpl | 16 class SYNC_EXPORT InternalComponentsFactoryImpl |
| 17 : public InternalComponentsFactory { | 17 : public InternalComponentsFactory { |
| 18 public: | 18 public: |
| 19 InternalComponentsFactoryImpl(const Switches& switches); | 19 InternalComponentsFactoryImpl(const Switches& switches); |
| 20 virtual ~InternalComponentsFactoryImpl(); | 20 virtual ~InternalComponentsFactoryImpl(); |
| 21 | 21 |
| 22 virtual scoped_ptr<SyncScheduler> BuildScheduler( | 22 virtual scoped_ptr<SyncScheduler> BuildScheduler( |
| 23 const std::string& name, | 23 const std::string& name, |
| 24 sessions::SyncSessionContext* context, | 24 sessions::SyncSessionContext* context, |
| 25 syncer::CancelationSignal* cancelation_signal) OVERRIDE; | 25 syncer::CancelationSignal* cancelation_signal) OVERRIDE; |
| 26 | 26 |
| 27 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( | 27 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( |
| 28 ServerConnectionManager* connection_manager, | 28 ServerConnectionManager* connection_manager, |
| 29 syncable::Directory* directory, | 29 syncable::Directory* directory, |
| 30 const std::vector<ModelSafeWorker*>& workers, | |
| 31 ExtensionsActivity* extensions_activity, | 30 ExtensionsActivity* extensions_activity, |
| 32 const std::vector<SyncEngineEventListener*>& listeners, | 31 const std::vector<SyncEngineEventListener*>& listeners, |
| 33 sessions::DebugInfoGetter* debug_info_getter, | 32 sessions::DebugInfoGetter* debug_info_getter, |
| 34 TrafficRecorder* traffic_recorder, | 33 TrafficRecorder* traffic_recorder, |
| 34 ModelTypeRegistry* model_type_registry, |
| 35 const std::string& invalidator_client_id) OVERRIDE; | 35 const std::string& invalidator_client_id) OVERRIDE; |
| 36 | 36 |
| 37 virtual scoped_ptr<syncable::DirectoryBackingStore> | 37 virtual scoped_ptr<syncable::DirectoryBackingStore> |
| 38 BuildDirectoryBackingStore( | 38 BuildDirectoryBackingStore( |
| 39 const std::string& dir_name, | 39 const std::string& dir_name, |
| 40 const base::FilePath& backing_filepath) OVERRIDE; | 40 const base::FilePath& backing_filepath) OVERRIDE; |
| 41 | 41 |
| 42 virtual Switches GetSwitches() const OVERRIDE; | 42 virtual Switches GetSwitches() const OVERRIDE; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 const Switches switches_; | 45 const Switches switches_; |
| 46 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl); | 46 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace syncer | 49 } // namespace syncer |
| 50 | 50 |
| 51 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ | 51 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ |
| OLD | NEW |