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

Unified Diff: components/sync/core_impl/model_type_connector_proxy.h

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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/core_impl/model_type_connector_proxy.h
diff --git a/components/sync/core_impl/model_type_connector_proxy.h b/components/sync/core_impl/model_type_connector_proxy.h
deleted file mode 100644
index 7b233200a0bd6f307362dd8df87b74dfbb491f92..0000000000000000000000000000000000000000
--- a/components/sync/core_impl/model_type_connector_proxy.h
+++ /dev/null
@@ -1,44 +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_CORE_IMPL_MODEL_TYPE_CONNECTOR_PROXY_H_
-#define COMPONENTS_SYNC_CORE_IMPL_MODEL_TYPE_CONNECTOR_PROXY_H_
-
-#include <memory>
-
-#include "base/memory/weak_ptr.h"
-#include "base/sequenced_task_runner.h"
-#include "components/sync/base/model_type.h"
-#include "components/sync/core/model_type_connector.h"
-
-namespace syncer {
-
-// Proxies all ModelTypeConnector calls to another thread. Typically used by
-// the SyncBackend to call from the UI thread to the real ModelTypeConnector on
-// the sync thread.
-class ModelTypeConnectorProxy : public ModelTypeConnector {
- public:
- ModelTypeConnectorProxy(
- const scoped_refptr<base::SequencedTaskRunner>& task_runner,
- const base::WeakPtr<ModelTypeConnector>& model_type_connector);
- ~ModelTypeConnectorProxy() override;
-
- // ModelTypeConnector implementation
- void ConnectType(
- ModelType type,
- std::unique_ptr<ActivationContext> activation_context) override;
- void DisconnectType(ModelType type) override;
-
- private:
- // A SequencedTaskRunner representing the thread where the ModelTypeConnector
- // lives.
- scoped_refptr<base::SequencedTaskRunner> task_runner_;
-
- // The ModelTypeConnector this object is wrapping.
- base::WeakPtr<ModelTypeConnector> model_type_connector_;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_CORE_IMPL_MODEL_TYPE_CONNECTOR_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698