| Index: components/sync/engine/engine_components_factory.h
|
| diff --git a/components/sync/core/internal_components_factory.h b/components/sync/engine/engine_components_factory.h
|
| similarity index 86%
|
| rename from components/sync/core/internal_components_factory.h
|
| rename to components/sync/engine/engine_components_factory.h
|
| index 779415d0d8a414c60b59c605347b28615512ab88..175af5cf37af4426b50ed405153a02befd3cf576 100644
|
| --- a/components/sync/core/internal_components_factory.h
|
| +++ b/components/sync/engine/engine_components_factory.h
|
| @@ -1,13 +1,9 @@
|
| // Copyright 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| -//
|
| -// InternalComponentsFactory exists so that tests can override creation of
|
| -// components used by the SyncManager that are not exposed across the sync
|
| -// API boundary.
|
|
|
| -#ifndef COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_H_
|
| -#define COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_H_
|
| +#ifndef COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_
|
| +#define COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_
|
|
|
| #include <memory>
|
| #include <string>
|
| @@ -32,7 +28,9 @@ class Directory;
|
| class DirectoryBackingStore;
|
| }
|
|
|
| -class InternalComponentsFactory {
|
| +// EngineComponentsFactory exists so that tests can override creation of
|
| +// components used by the SyncManager and other things inside engine/.
|
| +class EngineComponentsFactory {
|
| public:
|
| enum EncryptionMethod {
|
| ENCRYPTION_LEGACY,
|
| @@ -61,7 +59,7 @@ class InternalComponentsFactory {
|
| // Configuration options for internal components. This struct is expected
|
| // to grow and shrink over time with transient features / experiments,
|
| // roughly following command line flags in chrome. Implementations of
|
| - // InternalComponentsFactory can use this information to build components
|
| + // EngineComponentsFactory can use this information to build components
|
| // with appropriate bells and whistles.
|
| struct Switches {
|
| EncryptionMethod encryption_method;
|
| @@ -81,7 +79,7 @@ class InternalComponentsFactory {
|
| STORAGE_INVALID
|
| };
|
|
|
| - virtual ~InternalComponentsFactory() {}
|
| + virtual ~EngineComponentsFactory() {}
|
|
|
| virtual std::unique_ptr<SyncScheduler> BuildScheduler(
|
| const std::string& name,
|
| @@ -109,4 +107,4 @@ class InternalComponentsFactory {
|
|
|
| } // namespace syncer
|
|
|
| -#endif // COMPONENTS_SYNC_CORE_INTERNAL_COMPONENTS_FACTORY_H_
|
| +#endif // COMPONENTS_SYNC_ENGINE_ENGINE_COMPONENTS_FACTORY_H_
|
|
|