OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "remoting/host/single_window_desktop_environment.h" | 5 #include "remoting/host/single_window_desktop_environment.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "remoting/host/single_window_input_injector.h" | 13 #include "remoting/host/single_window_input_injector.h" |
14 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | 14 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" |
15 #include "third_party/webrtc/modules/desktop_capture/window_capturer.h" | 15 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 // Enables capturing and streaming of windows. | 19 // Enables capturing and streaming of windows. |
20 class SingleWindowDesktopEnvironment : public BasicDesktopEnvironment { | 20 class SingleWindowDesktopEnvironment : public BasicDesktopEnvironment { |
21 | 21 |
22 public: | 22 public: |
23 ~SingleWindowDesktopEnvironment() override; | 23 ~SingleWindowDesktopEnvironment() override; |
24 | 24 |
25 // DesktopEnvironment interface. | 25 // DesktopEnvironment interface. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 SingleWindowDesktopEnvironmentFactory::Create( | 100 SingleWindowDesktopEnvironmentFactory::Create( |
101 base::WeakPtr<ClientSessionControl> client_session_control) { | 101 base::WeakPtr<ClientSessionControl> client_session_control) { |
102 DCHECK(caller_task_runner()->BelongsToCurrentThread()); | 102 DCHECK(caller_task_runner()->BelongsToCurrentThread()); |
103 | 103 |
104 return base::WrapUnique(new SingleWindowDesktopEnvironment( | 104 return base::WrapUnique(new SingleWindowDesktopEnvironment( |
105 caller_task_runner(), video_capture_task_runner(), input_task_runner(), | 105 caller_task_runner(), video_capture_task_runner(), input_task_runner(), |
106 ui_task_runner(), window_id_)); | 106 ui_task_runner(), window_id_)); |
107 } | 107 } |
108 | 108 |
109 } // namespace remoting | 109 } // namespace remoting |
OLD | NEW |