| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // An InternalComponentsFactory implementation designed for real production / |
| 6 // normal use. |
| 7 |
| 8 #ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ |
| 9 #define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ |
| 10 |
| 11 #include "sync/internal_api/public/internal_components_factory.h" |
| 12 |
| 13 namespace syncer { |
| 14 |
| 15 class InternalComponentsFactoryImpl : public InternalComponentsFactory { |
| 16 public: |
| 17 InternalComponentsFactoryImpl(); |
| 18 virtual ~InternalComponentsFactoryImpl(); |
| 19 |
| 20 virtual scoped_ptr<SyncScheduler> BuildScheduler( |
| 21 const std::string& name, |
| 22 sessions::SyncSessionContext* context) OVERRIDE; |
| 23 |
| 24 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( |
| 25 ServerConnectionManager* connection_manager, |
| 26 syncable::Directory* directory, |
| 27 const ModelSafeRoutingInfo& routing_info, |
| 28 const std::vector<ModelSafeWorker*> workers, |
| 29 ExtensionsActivityMonitor* monitor, |
| 30 ThrottledDataTypeTracker* throttled_data_type_tracker, |
| 31 const std::vector<SyncEngineEventListener*>& listeners, |
| 32 sessions::DebugInfoGetter* debug_info_getter, |
| 33 syncer::TrafficRecorder* traffic_recorder) OVERRIDE; |
| 34 |
| 35 virtual scoped_ptr<syncable::DirectoryBackingStore> |
| 36 BuildDirectoryBackingStore( |
| 37 const std::string& dir_name, |
| 38 const FilePath& backing_filepath) OVERRIDE; |
| 39 |
| 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl); |
| 42 }; |
| 43 |
| 44 } // namespace syncer |
| 45 |
| 46 #endif // SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_IMPL_H_ |
| OLD | NEW |