| 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_ME2ME_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "remoting/host/basic_desktop_environment.h" | 9 #include "remoting/host/basic_desktop_environment.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // DesktopEnvironment interface. | 23 // DesktopEnvironment interface. |
| 24 std::unique_ptr<ScreenControls> CreateScreenControls() override; | 24 std::unique_ptr<ScreenControls> CreateScreenControls() override; |
| 25 std::string GetCapabilities() const override; | 25 std::string GetCapabilities() const override; |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 friend class Me2MeDesktopEnvironmentFactory; | 28 friend class Me2MeDesktopEnvironmentFactory; |
| 29 Me2MeDesktopEnvironment( | 29 Me2MeDesktopEnvironment( |
| 30 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 31 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, | 31 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, |
| 32 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 32 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 33 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 33 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
| 34 bool supports_touch_events); | |
| 35 | 34 |
| 36 // Initializes security features of the desktop environment (the curtain mode | 35 // Initializes security features of the desktop environment (the curtain mode |
| 37 // and in-session UI). | 36 // and in-session UI). |
| 38 bool InitializeSecurity( | 37 bool InitializeSecurity( |
| 39 base::WeakPtr<ClientSessionControl> client_session_control, | 38 base::WeakPtr<ClientSessionControl> client_session_control, |
| 40 bool curtain_enabled); | 39 bool curtain_enabled); |
| 41 | 40 |
| 42 private: | 41 private: |
| 43 // "Curtains" the session making sure it is disconnected from the local | 42 // "Curtains" the session making sure it is disconnected from the local |
| 44 // console. | 43 // console. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 74 private: | 73 private: |
| 75 // True if curtain mode is enabled. | 74 // True if curtain mode is enabled. |
| 76 bool curtain_enabled_ = false; | 75 bool curtain_enabled_ = false; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironmentFactory); | 77 DISALLOW_COPY_AND_ASSIGN(Me2MeDesktopEnvironmentFactory); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace remoting | 80 } // namespace remoting |
| 82 | 81 |
| 83 #endif // REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ | 82 #endif // REMOTING_HOST_ME2ME_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |