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

Side by Side Diff: sync/internal_api/model_type_connector_proxy.cc

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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "sync/internal_api/model_type_connector_proxy.h"
6
7 #include "base/bind.h"
8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h"
10 #include "sync/internal_api/public/activation_context.h"
11
12 namespace syncer_v2 {
13
14 ModelTypeConnectorProxy::ModelTypeConnectorProxy(
15 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
16 const base::WeakPtr<ModelTypeConnector>& model_type_connector)
17 : task_runner_(task_runner), model_type_connector_(model_type_connector) {}
18
19 ModelTypeConnectorProxy::~ModelTypeConnectorProxy() {}
20
21 void ModelTypeConnectorProxy::ConnectType(
22 syncer::ModelType type,
23 std::unique_ptr<ActivationContext> activation_context) {
24 task_runner_->PostTask(
25 FROM_HERE,
26 base::Bind(&ModelTypeConnector::ConnectType, model_type_connector_, type,
27 base::Passed(&activation_context)));
28 }
29
30 void ModelTypeConnectorProxy::DisconnectType(syncer::ModelType type) {
31 task_runner_->PostTask(FROM_HERE,
32 base::Bind(&ModelTypeConnector::DisconnectType,
33 model_type_connector_, type));
34 }
35
36 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « sync/internal_api/model_type_connector_proxy.h ('k') | sync/internal_api/model_type_connector_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698