| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/desktop_capturer_proxy.h" | 5 #include "remoting/host/desktop_capturer_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "remoting/proto/control.pb.h" | 17 #include "remoting/proto/control.pb.h" |
| 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" |
| 19 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 19 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 20 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 20 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
| 21 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | 21 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" |
| 22 | 22 |
| 23 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 24 #include "remoting/host/chromeos/aura_desktop_capturer.h" | 24 #include "remoting/host/chromeos/aura_desktop_capturer.h" |
| 25 #endif | 25 #endif |
| 26 | 26 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 152 } |
| 153 | 153 |
| 154 void DesktopCapturerProxy::OnFrameCaptured( | 154 void DesktopCapturerProxy::OnFrameCaptured( |
| 155 std::unique_ptr<webrtc::DesktopFrame> frame) { | 155 std::unique_ptr<webrtc::DesktopFrame> frame) { |
| 156 DCHECK(thread_checker_.CalledOnValidThread()); | 156 DCHECK(thread_checker_.CalledOnValidThread()); |
| 157 | 157 |
| 158 callback_->OnCaptureCompleted(frame.release()); | 158 callback_->OnCaptureCompleted(frame.release()); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace remoting | 161 } // namespace remoting |
| OLD | NEW |