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

Unified Diff: remoting/host/ipc_desktop_environment_factory.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_factory.h
diff --git a/remoting/host/ipc_desktop_environment_factory.h b/remoting/host/ipc_desktop_environment_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..42241731d4c17334dcba69c13ae141cfb5f2a85d
--- /dev/null
+++ b/remoting/host/ipc_desktop_environment_factory.h
@@ -0,0 +1,35 @@
+// 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_FACTORY_H_
+#define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_
+
+#include "remoting/host/desktop_environment_factory.h"
+
+namespace remoting {
+
+class DaemonSender;
+
+class IpcDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
Wez 2012/10/13 00:47:15 Add a comment to explain what this class actually
alexeypa (please no reviews) 2012/10/16 19:32:25 Done.
+ public:
+ // |daemon_sender| must outlive |this|.
Wez 2012/10/13 00:47:15 Clarify here what |daemon_sender| will be used for
alexeypa (please no reviews) 2012/10/16 19:32:25 Done.
+ IpcDesktopEnvironmentFactory(
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ DaemonSender* daemon_sender);
+ virtual ~IpcDesktopEnvironmentFactory();
+
+ virtual scoped_ptr<DesktopEnvironment> Create() OVERRIDE;
+
+ private:
+ // Points to an object implementing registration of desktop environment
+ // instances.
+ DaemonSender* daemon_sender_;
+
+ DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698