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

Unified Diff: remoting/host/desktop_session_connector.h

Issue 11028128: [Chromoting] Request the daemon to open a terminal once a connection has been accepted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feeback and rebased on top of https://chromiumcodereview.appspot.com/11017065/ Created 8 years, 2 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: remoting/host/desktop_session_connector.h
diff --git a/remoting/host/desktop_session_connector.h b/remoting/host/desktop_session_connector.h
new file mode 100644
index 0000000000000000000000000000000000000000..d99611a1420b740d8d73afa56d9ba468bd339587
--- /dev/null
+++ b/remoting/host/desktop_session_connector.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2012 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 REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_
+#define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_
+
+#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
Wez 2012/10/17 17:51:57 No need for this include
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
+
+namespace remoting {
+
+class IpcDesktopEnvironment;
+
+// Provides a way to connect a terminal (i.e. a remote client) with a desktop
+// session (i.e. the screen, keyboard and the rest).
+class DesktopSessionConnector {
+ public:
+ DesktopSessionConnector() {}
+ virtual ~DesktopSessionConnector() {}
+
+ // Requests the daemon process to create a desktop session and associates
+ // |desktop_environment| with it.
+ virtual void ConnectTerminal(IpcDesktopEnvironment* desktop_environment) = 0;
+
+ // Requests the daemon process disconnect |desktop_environment| from
+ // the associated desktop session.
+ virtual void DisconnectTerminal(
+ IpcDesktopEnvironment* desktop_environment) = 0;
+
+ // Notifies the network process that the daemon has disconnected the desktop
+ // session from the accsociated descktop environment.
Wez 2012/10/17 17:51:57 typo: associated
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
+ virtual void OnTerminalDisconnected(int terminal_id) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698