Chromium Code Reviews| Index: remoting/host/desktop_process.h |
| diff --git a/remoting/host/desktop_process.h b/remoting/host/desktop_process.h |
| index 606dab5d212371d62cb873bfd2f0edb50e2b8708..9c7d368ee394f464baee9f474d5f66bc10844e69 100644 |
| --- a/remoting/host/desktop_process.h |
| +++ b/remoting/host/desktop_process.h |
| @@ -8,6 +8,7 @@ |
| #include <string> |
| #include "base/basictypes.h" |
| +#include "base/callback_forward.h" |
| #include "base/compiler_specific.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| @@ -22,28 +23,35 @@ class ChannelProxy; |
| namespace remoting { |
| class AutoThreadTaskRunner; |
| +class DesktopEnvironment; |
| +class DesktopEnvironmentFactory; |
| class DesktopSessionAgent; |
| class DesktopProcess : public DesktopSessionAgent::Delegate, |
| public IPC::Listener, |
| public base::SupportsWeakPtr<DesktopProcess> { |
| public: |
| - DesktopProcess(scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
| - const std::string& daemon_channel_name); |
| + // |desktop_environment_factory| must outlive |this|. |
|
Wez
2013/02/01 01:02:11
Out of date comment?
alexeypa (please no reviews)
2013/02/01 17:28:43
Done.
|
| + DesktopProcess( |
| + scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
| + const std::string& daemon_channel_name); |
| virtual ~DesktopProcess(); |
| // DesktopSessionAgent::Delegate implementation. |
| + virtual DesktopEnvironmentFactory& GetDesktopEnvironmentFactory() OVERRIDE; |
| virtual void OnNetworkProcessDisconnected() OVERRIDE; |
| - virtual void InjectSas() OVERRIDE; |
| // IPC::Listener implementation. |
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| virtual void OnChannelError() OVERRIDE; |
| + // Injects Secure Attention Sequence. |
| + void InjectSas(); |
| + |
| // Creates the desktop agent and required threads and IPC channels. Returns |
| // true on success. |
| - bool Start(); |
| + bool Start(scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory); |
| private: |
| // Crashes the process in response to a daemon's request. The daemon passes |
| @@ -56,6 +64,8 @@ class DesktopProcess : public DesktopSessionAgent::Delegate, |
| // Task runner on which public methods of this class should be called. |
| scoped_refptr<AutoThreadTaskRunner> caller_task_runner_; |
| + scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; |
|
Wez
2013/02/01 01:02:11
nit: Suggest comment "Factory used to create integ
alexeypa (please no reviews)
2013/02/01 17:28:43
Done.
|
| + |
| // Name of the IPC channel connecting the desktop process with the daemon |
| // process. |
| std::string daemon_channel_name_; |