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

Unified Diff: chrome/browser/sync/glue/syncable_service_adapter.h

Issue 9395058: [Sync] Remove SyncableServiceAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 8 years, 10 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: chrome/browser/sync/glue/syncable_service_adapter.h
diff --git a/chrome/browser/sync/glue/syncable_service_adapter.h b/chrome/browser/sync/glue/syncable_service_adapter.h
deleted file mode 100644
index 7390f1c0513e7459be17a72188ed07f8a29c2843..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/glue/syncable_service_adapter.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2011 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 CHROME_BROWSER_SYNC_GLUE_SYNCABLE_SERVICE_ADAPTER_H_
-#define CHROME_BROWSER_SYNC_GLUE_SYNCABLE_SERVICE_ADAPTER_H_
-#pragma once
-
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/sync/api/syncable_service.h"
-#include "chrome/browser/sync/glue/model_associator.h"
-
-class SyncableService;
-
-namespace browser_sync {
-
-class GenericChangeProcessor;
-
-// An adapter to handle transitioning from model associator's to syncable
-// services. Implements the model associator interface, invoking the
-// provided SyncableService as necessary.
-class SyncableServiceAdapter : public AssociatorInterface {
- public:
- SyncableServiceAdapter(syncable::ModelType type,
- SyncableService* service,
- GenericChangeProcessor* sync_processor);
- virtual ~SyncableServiceAdapter();
-
- // AssociatorInterface implementation.
- virtual bool AssociateModels(SyncError* error) OVERRIDE;
- virtual bool DisassociateModels(SyncError* error) OVERRIDE;
- virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) OVERRIDE;
- virtual void AbortAssociation() OVERRIDE;
- virtual bool CryptoReadyIfNecessary() OVERRIDE;
-
- private:
- // Whether the SyncableService we wrap is currently syncing or not.
- bool syncing_;
-
- // The data type being provided by this service.
- syncable::ModelType type_;
-
- // A pointer to the actual local syncable service, which performs all the
- // real work.
- SyncableService* service_;
-
- // The datatype's SyncChange handler that interacts with the sync db.
- GenericChangeProcessor* sync_processor_;
-
- DISALLOW_COPY_AND_ASSIGN(SyncableServiceAdapter);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_GLUE_SYNCABLE_SERVICE_ADAPTER_H_

Powered by Google App Engine
This is Rietveld 408576698