Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: components/sync_driver/generic_change_processor_factory.h

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync_driver/generic_change_processor_factory.h
diff --git a/components/sync_driver/generic_change_processor_factory.h b/components/sync_driver/generic_change_processor_factory.h
deleted file mode 100644
index eaedbb116fded11c0e607d148ec36f607df75367..0000000000000000000000000000000000000000
--- a/components/sync_driver/generic_change_processor_factory.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_FACTORY_H_
-#define COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_FACTORY_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "components/sync/base/model_type.h"
-
-namespace syncer {
-class AttachmentService;
-class DataTypeErrorHandler;
-class SyncableService;
-class SyncMergeResult;
-struct UserShare;
-}
-
-namespace sync_driver {
-
-class GenericChangeProcessor;
-class SyncClient;
-
-// Because GenericChangeProcessors are created and used only from the model
-// thread, their lifetime is strictly shorter than other components like
-// DataTypeController, which live before / after communication with model
-// threads begins and ends.
-// The GCP is created "on the fly" at just the right time, on just the right
-// thread. Given that, we use a factory to instantiate GenericChangeProcessors
-// so that tests can choose to use a fake processor (i.e instead of injection).
-// |sync_factory| is used to create AttachmentServicefor GenericChangeProcessor.
-// It is not retained after CreateGenericChangeProcessor exits.
-class GenericChangeProcessorFactory {
- public:
- GenericChangeProcessorFactory();
- virtual ~GenericChangeProcessorFactory();
- virtual std::unique_ptr<GenericChangeProcessor> CreateGenericChangeProcessor(
- syncer::ModelType type,
- syncer::UserShare* user_share,
- syncer::DataTypeErrorHandler* error_handler,
- const base::WeakPtr<syncer::SyncableService>& local_service,
- const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
- SyncClient* sync_client);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(GenericChangeProcessorFactory);
-};
-
-} // namespace sync_driver
-
-#endif // COMPONENTS_SYNC_DRIVER_GENERIC_CHANGE_PROCESSOR_FACTORY_H_
« no previous file with comments | « components/sync_driver/generic_change_processor.cc ('k') | components/sync_driver/generic_change_processor_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698