| 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 // | |
| 5 // An EngineComponentsFactory implementation designed for real production / | |
| 6 // normal use. | |
| 7 | 4 |
| 8 #ifndef COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_ |
| 9 #define COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_ | 6 #define COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_ |
| 10 | 7 |
| 11 #include <memory> | 8 #include <memory> |
| 12 #include <string> | 9 #include <string> |
| 13 #include <vector> | 10 #include <vector> |
| 14 | 11 |
| 15 #include "base/macros.h" | 12 #include "base/macros.h" |
| 16 #include "components/sync/engine/engine_components_factory.h" | 13 #include "components/sync/engine/engine_components_factory.h" |
| 17 | 14 |
| 18 namespace syncer { | 15 namespace syncer { |
| 19 | 16 |
| 17 // An EngineComponentsFactory implementation designed for real production / |
| 18 // normal use. |
| 20 class EngineComponentsFactoryImpl : public EngineComponentsFactory { | 19 class EngineComponentsFactoryImpl : public EngineComponentsFactory { |
| 21 public: | 20 public: |
| 22 explicit EngineComponentsFactoryImpl(const Switches& switches); | 21 explicit EngineComponentsFactoryImpl(const Switches& switches); |
| 23 ~EngineComponentsFactoryImpl() override; | 22 ~EngineComponentsFactoryImpl() override; |
| 24 | 23 |
| 25 std::unique_ptr<SyncScheduler> BuildScheduler( | 24 std::unique_ptr<SyncScheduler> BuildScheduler( |
| 26 const std::string& name, | 25 const std::string& name, |
| 27 SyncCycleContext* context, | 26 SyncCycleContext* context, |
| 28 CancelationSignal* cancelation_signal) override; | 27 CancelationSignal* cancelation_signal) override; |
| 29 | 28 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 Switches GetSwitches() const override; | 43 Switches GetSwitches() const override; |
| 45 | 44 |
| 46 private: | 45 private: |
| 47 const Switches switches_; | 46 const Switches switches_; |
| 48 DISALLOW_COPY_AND_ASSIGN(EngineComponentsFactoryImpl); | 47 DISALLOW_COPY_AND_ASSIGN(EngineComponentsFactoryImpl); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace syncer | 50 } // namespace syncer |
| 52 | 51 |
| 53 #endif // COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_ | 52 #endif // COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_IMPL_H_ |
| OLD | NEW |