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

Unified Diff: sync/internal_api/sync_core_proxy_impl.cc

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 years, 6 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/sync_core_proxy_impl.h ('k') | sync/internal_api/sync_core_proxy_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_core_proxy_impl.cc
diff --git a/sync/internal_api/sync_core_proxy_impl.cc b/sync/internal_api/sync_core_proxy_impl.cc
deleted file mode 100644
index 81c0fa2451a5a0adafd4ccd6668d1c61f523e289..0000000000000000000000000000000000000000
--- a/sync/internal_api/sync_core_proxy_impl.cc
+++ /dev/null
@@ -1,47 +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.
-
-#include "sync/internal_api/sync_core_proxy_impl.h"
-
-#include "base/bind.h"
-#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
-#include "sync/engine/non_blocking_sync_common.h"
-#include "sync/internal_api/sync_core.h"
-
-namespace syncer {
-
-SyncCoreProxyImpl::SyncCoreProxyImpl(
- scoped_refptr<base::SequencedTaskRunner> sync_task_runner,
- base::WeakPtr<SyncCore> sync_core)
- : sync_task_runner_(sync_task_runner),
- sync_core_(sync_core) {}
-
-SyncCoreProxyImpl::~SyncCoreProxyImpl() {}
-
-void SyncCoreProxyImpl::ConnectTypeToCore(
- ModelType type,
- const DataTypeState& data_type_state,
- base::WeakPtr<NonBlockingTypeProcessor> type_processor) {
- VLOG(1) << "ConnectTypeToCore: " << ModelTypeToString(type);
- sync_task_runner_->PostTask(FROM_HERE,
- base::Bind(&SyncCore::ConnectSyncTypeToCore,
- sync_core_,
- type,
- data_type_state,
- base::MessageLoopProxy::current(),
- type_processor));
-}
-
-void SyncCoreProxyImpl::Disconnect(ModelType type) {
- sync_task_runner_->PostTask(
- FROM_HERE, base::Bind(&SyncCore::Disconnect, sync_core_, type));
-}
-
-scoped_ptr<SyncCoreProxy> SyncCoreProxyImpl::Clone() const {
- return scoped_ptr<SyncCoreProxy>(
- new SyncCoreProxyImpl(sync_task_runner_, sync_core_));
-}
-
-} // namespace syncer
« no previous file with comments | « sync/internal_api/sync_core_proxy_impl.h ('k') | sync/internal_api/sync_core_proxy_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698