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

Unified Diff: remoting/host/ipc_desktop_environment.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: 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/ipc_desktop_environment.h
diff --git a/remoting/host/ipc_desktop_environment.h b/remoting/host/ipc_desktop_environment.h
new file mode 100644
index 0000000000000000000000000000000000000000..1f6c680c400aadf3f8afcf01a25ac456d7c11484
--- /dev/null
+++ b/remoting/host/ipc_desktop_environment.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_IPC_DESKTOP_ENVIRONMENT_H_
+#define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "remoting/host/desktop_environment.h"
+
+namespace remoting {
+
+class DaemonSender;
+
+class IpcDesktopEnvironment : public DesktopEnvironment {
Wez 2012/10/13 00:47:15 Add a description of what IpcDesktopEnvironment is
alexeypa (please no reviews) 2012/10/16 19:32:25 Done.
+ public:
+ // |daemon_sender| must outlive |this|.
+ IpcDesktopEnvironment(scoped_ptr<AudioCapturer> audio_capturer,
+ scoped_ptr<EventExecutor> event_executor,
+ scoped_ptr<VideoFrameCapturer> video_capturer,
+ DaemonSender* daemon_sender);
+ virtual ~IpcDesktopEnvironment();
+
+ virtual void Start(
+ scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE;
+
+ private:
+ // Points to an object implementing registration of desktop environment
+ // instances.
+ DaemonSender* daemon_sender_;
+
+ // True if a terminal has been opened by the daemon process for |this|.
+ bool terminal_opened_;
+
+ DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironment);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_

Powered by Google App Engine
This is Rietveld 408576698