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

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

Issue 7564037: Apps/Extensions Sync refactoring -- delete most of the old glue, implement new sync API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Release build warning :-/ Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/glue/app_change_processor.cc ('k') | chrome/browser/sync/glue/app_model_associator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/app_model_associator.h
diff --git a/chrome/browser/sync/glue/app_model_associator.h b/chrome/browser/sync/glue/app_model_associator.h
deleted file mode 100644
index 0d975cdcfce2487f9098629ccfb268c0044f3b83..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/glue/app_model_associator.h
+++ /dev/null
@@ -1,50 +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_APP_MODEL_ASSOCIATOR_H_
-#define CHROME_BROWSER_SYNC_GLUE_APP_MODEL_ASSOCIATOR_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "chrome/browser/sync/glue/extension_sync_traits.h"
-#include "chrome/browser/sync/glue/model_associator.h"
-#include "chrome/browser/sync/syncable/model_type.h"
-
-class ExtensionServiceInterface;
-
-namespace sync_api {
-struct UserShare;
-} // namespace sync_api
-
-namespace browser_sync {
-
-// Contains all logic for associating the Chrome apps model and the
-// sync apps model.
-class AppModelAssociator : public AssociatorInterface {
- public:
- // Does not take ownership of |extension_service| or |user_share|.
- AppModelAssociator(ExtensionServiceInterface* extension_service,
- sync_api::UserShare* user_share);
- virtual ~AppModelAssociator();
-
- // Used by profile_sync_test_util.h.
- static syncable::ModelType model_type() { return syncable::APPS; }
-
- // AssociatorInterface implementation.
- virtual bool AssociateModels(SyncError* error);
- virtual bool DisassociateModels(SyncError* error);
- virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes);
- virtual void AbortAssociation();
- virtual bool CryptoReadyIfNecessary();
- private:
- const ExtensionSyncTraits traits_;
- ExtensionServiceInterface* const extension_service_;
- sync_api::UserShare* const user_share_;
-
- DISALLOW_COPY_AND_ASSIGN(AppModelAssociator);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_GLUE_APP_MODEL_ASSOCIATOR_H_
« no previous file with comments | « chrome/browser/sync/glue/app_change_processor.cc ('k') | chrome/browser/sync/glue/app_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698