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

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

Issue 3127017: Revert 56423 - Added classes to enable session sync functionality.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
Index: chrome/browser/sync/glue/session_data_type_controller.h
===================================================================
--- chrome/browser/sync/glue/session_data_type_controller.h (revision 56425)
+++ chrome/browser/sync/glue/session_data_type_controller.h (working copy)
@@ -1,85 +0,0 @@
-// Copyright (c) 2010 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_SESSION_DATA_TYPE_CONTROLLER_H_
-#define CHROME_BROWSER_SYNC_GLUE_SESSION_DATA_TYPE_CONTROLLER_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
-#include "chrome/browser/sync/glue/data_type_controller.h"
-
-class ProfileSyncFactory;
-class ProfileSyncService;
-
-namespace browser_sync {
-
-class AssociatorInterface;
-class ChangeProcessor;
-
-class SessionDataTypeController : public DataTypeController {
- public:
- SessionDataTypeController(
- ProfileSyncFactory* profile_sync_factory,
- ProfileSyncService* sync_service);
- virtual ~SessionDataTypeController();
-
- // DataTypeController implementation.
- virtual void Start(StartCallback* start_callback);
-
- virtual void Stop();
-
- virtual bool enabled() {
- return true;
- }
-
- virtual syncable::ModelType type() {
- return syncable::SESSIONS;
- }
-
- virtual browser_sync::ModelSafeGroup model_safe_group() {
- return browser_sync::GROUP_UI;
- }
-
- virtual const char* name() const {
- // For logging only.
- return "session";
- }
-
- virtual State state() {
- return state_;
- }
-
- // UnrecoverableErrorHandler interface.
- virtual void OnUnrecoverableError(
- const tracked_objects::Location& from_here,
- const std::string& message);
-
-SessionModelAssociator* GetModelAssociator();
-
- private:
- // Helper method to run the stashed start callback with a given result.
- void FinishStart(StartResult result);
-
- // Cleans up state and calls callback when start fails.
- void StartFailed(StartResult result);
-
- ProfileSyncFactory* profile_sync_factory_;
- ProfileSyncService* sync_service_;
-
- State state_;
-
- scoped_ptr<StartCallback> start_callback_;
- scoped_ptr<AssociatorInterface> model_associator_;
- scoped_ptr<ChangeProcessor> change_processor_;
-
- DISALLOW_COPY_AND_ASSIGN(SessionDataTypeController);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_GLUE_SESSION_DATA_TYPE_CONTROLLER_H_
-
« no previous file with comments | « chrome/browser/sync/glue/session_change_processor.cc ('k') | chrome/browser/sync/glue/session_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698