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

Unified Diff: components/sync_driver/proxy_data_type_controller.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/proxy_data_type_controller.h
diff --git a/components/sync_driver/proxy_data_type_controller.h b/components/sync_driver/proxy_data_type_controller.h
deleted file mode 100644
index 5e075e2b887b72b9cbec625d9a879a8965a6c17d..0000000000000000000000000000000000000000
--- a/components/sync_driver/proxy_data_type_controller.h
+++ /dev/null
@@ -1,57 +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_PROXY_DATA_TYPE_CONTROLLER_H__
-#define COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/single_thread_task_runner.h"
-#include "components/sync_driver/data_type_controller.h"
-
-namespace sync_driver {
-
-// Implementation for proxy datatypes. These are datatype that have no
-// representation in sync, and therefore no change processor or syncable
-// service.
-class ProxyDataTypeController : public DataTypeController {
- public:
- explicit ProxyDataTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- syncer::ModelType type);
-
- // DataTypeController interface.
- bool ShouldLoadModelBeforeConfigure() const override;
- void LoadModels(const ModelLoadCallback& model_load_callback) override;
- void RegisterWithBackend(BackendDataTypeConfigurer* configurer) override;
- void StartAssociating(const StartCallback& start_callback) override;
- void Stop() override;
- syncer::ModelType type() const override;
- std::string name() const override;
- State state() const override;
- void ActivateDataType(BackendDataTypeConfigurer* configurer) override;
- void DeactivateDataType(BackendDataTypeConfigurer* configurer) override;
-
- // DataTypeErrorHandler interface.
- void OnSingleDataTypeUnrecoverableError(
- const syncer::SyncError& error) override;
-
- protected:
- // DataTypeController is RefCounted.
- ~ProxyDataTypeController() override;
-
- private:
- State state_;
-
- // The actual type for this controller.
- syncer::ModelType type_;
-
- DISALLOW_COPY_AND_ASSIGN(ProxyDataTypeController);
-};
-
-} // namespace sync_driver
-
-#endif // COMPONENTS_SYNC_DRIVER_PROXY_DATA_TYPE_CONTROLLER_H__
« no previous file with comments | « components/sync_driver/protocol_event_observer.cc ('k') | components/sync_driver/proxy_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698