| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // DesktopEnvironment implementation. | 22 // DesktopEnvironment implementation. |
| 23 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 23 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 friend class SessionDesktopEnvironmentFactory; | 26 friend class SessionDesktopEnvironmentFactory; |
| 27 SessionDesktopEnvironment( | 27 SessionDesktopEnvironment( |
| 28 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 28 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 29 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 29 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 30 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 31 base::WeakPtr<ClientSessionControl> client_session_control, | 31 base::WeakPtr<ClientSessionControl> client_session_control, |
| 32 const UiStrings* ui_strings, |
| 32 const base::Closure& inject_sas); | 33 const base::Closure& inject_sas); |
| 33 | 34 |
| 34 // Used to ask the daemon to inject Secure Attention Sequence. | 35 // Used to ask the daemon to inject Secure Attention Sequence. |
| 35 base::Closure inject_sas_; | 36 base::Closure inject_sas_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment); | 38 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 // Used to create |SessionDesktopEnvironment| instances. | 41 // Used to create |SessionDesktopEnvironment| instances. |
| 41 class SessionDesktopEnvironmentFactory : public Me2MeDesktopEnvironmentFactory { | 42 class SessionDesktopEnvironmentFactory : public Me2MeDesktopEnvironmentFactory { |
| 42 public: | 43 public: |
| 43 SessionDesktopEnvironmentFactory( | 44 SessionDesktopEnvironmentFactory( |
| 44 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 45 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 45 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 46 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 46 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 47 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 48 const UiStrings& ui_strings, |
| 47 const base::Closure& inject_sas); | 49 const base::Closure& inject_sas); |
| 48 virtual ~SessionDesktopEnvironmentFactory(); | 50 virtual ~SessionDesktopEnvironmentFactory(); |
| 49 | 51 |
| 50 // DesktopEnvironmentFactory implementation. | 52 // DesktopEnvironmentFactory implementation. |
| 51 virtual scoped_ptr<DesktopEnvironment> Create( | 53 virtual scoped_ptr<DesktopEnvironment> Create( |
| 52 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE; | 54 base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE; |
| 53 | 55 |
| 54 private: | 56 private: |
| 55 // Used to ask the daemon to inject Secure Attention Sequence. | 57 // Used to ask the daemon to inject Secure Attention Sequence. |
| 56 base::Closure inject_sas_; | 58 base::Closure inject_sas_; |
| 57 | 59 |
| 58 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); | 60 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace remoting | 63 } // namespace remoting |
| 62 | 64 |
| 63 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ | 65 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |