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

Unified Diff: chrome/browser/dom_ui/foreign_session_handler.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
« no previous file with comments | « chrome/browser/browser_commands_unittest.cc ('k') | chrome/browser/dom_ui/foreign_session_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/foreign_session_handler.h
===================================================================
--- chrome/browser/dom_ui/foreign_session_handler.h (revision 56425)
+++ chrome/browser/dom_ui/foreign_session_handler.h (working copy)
@@ -1,66 +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_DOM_UI_FOREIGN_SESSION_HANDLER_H_
-#define CHROME_BROWSER_DOM_UI_FOREIGN_SESSION_HANDLER_H_
-#pragma once
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include "chrome/browser/dom_ui/dom_ui.h"
-#include "chrome/browser/sessions/session_service.h"
-#include "chrome/browser/sync/glue/session_model_associator.h"
-#include "chrome/common/notification_observer.h"
-#include "chrome/common/notification_registrar.h"
-
-namespace browser_sync {
-
-class ForeignSessionHandler : public DOMMessageHandler,
- public NotificationObserver {
- public:
- // DOMMessageHandler implementation.
- virtual void RegisterMessages();
-
- ForeignSessionHandler();
- virtual ~ForeignSessionHandler() {}
-
- private:
- // Used to register ForeignSessionHandler for notifications.
- void Init();
-
- // Determines how ForeignSessionHandler will interact with the new tab page.
- void Observe(NotificationType type, const NotificationSource& source,
- const NotificationDetails& details);
-
- // Returns a pointer to the current session model associator or NULL.
- SessionModelAssociator* GetModelAssociator();
-
- // Determines whether foreign sessions should be obtained from the sync model.
- // This is a javascript callback handler, and it is also called when the sync
- // model has changed and the new tab page needs to reflect the changes.
- void HandleGetForeignSessions(const Value* content);
-
- // Helper for reopening a foreign session in a new browser window.
- void OpenForeignSession(SessionModelAssociator* associator, int64 id);
-
- // Helper for listing the foreign sessions on the new tab page.
- void GetForeignSessions(SessionModelAssociator* associator);
-
- // Determines which session is to be opened, and then calls
- // OpenForeignSession, to begin the process of opening a new browser window.
- // This is a javascript callback handler.
- void HandleReopenForeignSession(const Value* content);
-
- // The Registrar used to register ForeignSessionHandler for notifications.
- NotificationRegistrar registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_DOM_UI_FOREIGN_SESSION_HANDLER_H_
-
« no previous file with comments | « chrome/browser/browser_commands_unittest.cc ('k') | chrome/browser/dom_ui/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698