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

Unified Diff: sync/internal_api/model_type_connector_proxy.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « sync/internal_api/model_type_connector.cc ('k') | sync/internal_api/model_type_connector_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/model_type_connector_proxy.h
diff --git a/sync/internal_api/model_type_connector_proxy.h b/sync/internal_api/model_type_connector_proxy.h
deleted file mode 100644
index 5c05a7bd8b8a8d0ade285687bc42c89dcf3b5e11..0000000000000000000000000000000000000000
--- a/sync/internal_api/model_type_connector_proxy.h
+++ /dev/null
@@ -1,45 +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 SYNC_INTERNAL_API_MODEL_TYPE_CONNECTOR_PROXY_H_
-#define SYNC_INTERNAL_API_MODEL_TYPE_CONNECTOR_PROXY_H_
-
-#include <memory>
-
-#include "base/memory/weak_ptr.h"
-#include "base/sequenced_task_runner.h"
-#include "sync/base/sync_export.h"
-#include "sync/internal_api/public/base/model_type.h"
-#include "sync/internal_api/public/model_type_connector.h"
-
-namespace syncer_v2 {
-
-// 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 SYNC_EXPORT 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(
- syncer::ModelType type,
- std::unique_ptr<ActivationContext> activation_context) override;
- void DisconnectType(syncer::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_v2
-
-#endif // SYNC_INTERNAL_API_MODEL_TYPE_CONNECTOR_PROXY_H_
« no previous file with comments | « sync/internal_api/model_type_connector.cc ('k') | sync/internal_api/model_type_connector_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698