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

Unified Diff: blimp/helium/sync_manager.cc

Issue 2602103002: Delete blimp/helium and remove references to it from dependent targets (Closed)
Patch Set: . Created 4 years 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 | « blimp/helium/sync_manager.h ('k') | blimp/helium/syncable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/helium/sync_manager.cc
diff --git a/blimp/helium/sync_manager.cc b/blimp/helium/sync_manager.cc
deleted file mode 100644
index 88612c131789e49ec1ec1587fe8c8b8e2df1e559..0000000000000000000000000000000000000000
--- a/blimp/helium/sync_manager.cc
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2016 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 "blimp/helium/sync_manager.h"
-
-#include <utility>
-
-#include "base/logging.h"
-#include "base/memory/ptr_util.h"
-
-namespace blimp {
-namespace helium {
-namespace {
-
-class SyncManagerImpl : public SyncManager {
- public:
- explicit SyncManagerImpl(std::unique_ptr<HeliumTransport> transport);
- ~SyncManagerImpl() override;
-
- // HeliumSyncManager implementation.
- std::unique_ptr<SyncRegistration> Register(Syncable* object) override;
- std::unique_ptr<SyncRegistration> RegisterExisting(HeliumObjectId id,
- Syncable* object) override;
- void Unregister(HeliumObjectId id) override;
- void Pause(HeliumObjectId id, bool paused) override;
-
- private:
- std::unique_ptr<HeliumTransport> transport_;
-
- DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
-};
-
-SyncManagerImpl::SyncManagerImpl(std::unique_ptr<HeliumTransport> transport)
- : transport_(std::move(transport)) {
- DCHECK(transport_);
-}
-
-SyncManagerImpl::~SyncManagerImpl() {}
-
-std::unique_ptr<SyncManager::SyncRegistration> SyncManagerImpl::Register(
- Syncable* object) {
- NOTIMPLEMENTED();
- return nullptr;
-}
-
-std::unique_ptr<SyncManager::SyncRegistration>
-SyncManagerImpl::RegisterExisting(HeliumObjectId id, Syncable* object) {
- NOTIMPLEMENTED();
- return nullptr;
-}
-
-void SyncManagerImpl::Unregister(HeliumObjectId id) {
- NOTIMPLEMENTED();
-}
-
-void SyncManagerImpl::Pause(HeliumObjectId id, bool paused) {
- NOTIMPLEMENTED();
-}
-
-} // namespace
-
-// static
-std::unique_ptr<SyncManager> SyncManager::Create(
- std::unique_ptr<HeliumTransport> transport) {
- return base::MakeUnique<SyncManagerImpl>(std::move(transport));
-}
-
-SyncManager::SyncRegistration::SyncRegistration(SyncManager* sync_manager,
- HeliumObjectId id)
- : id_(id), sync_manager_(sync_manager) {
- DCHECK(sync_manager);
-}
-
-SyncManager::SyncRegistration::~SyncRegistration() {
- sync_manager_->Unregister(id_);
-}
-
-void SyncManager::SyncRegistration::Pause(bool paused) {
- sync_manager_->Pause(id_, paused);
-}
-
-} // namespace helium
-} // namespace blimp
« no previous file with comments | « blimp/helium/sync_manager.h ('k') | blimp/helium/syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698