| 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/protocol/webrtc_video_stream.h" | 5 #include "remoting/protocol/webrtc_video_stream.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "remoting/protocol/webrtc_video_capturer_adapter.h" | 8 #include "remoting/protocol/webrtc_video_capturer_adapter.h" |
| 9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 9 #include "third_party/webrtc/api/mediastreaminterface.h" |
| 10 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" | 10 #include "third_party/webrtc/api/peerconnectioninterface.h" |
| 11 #include "third_party/libjingle/source/talk/app/webrtc/test/fakeconstraints.h" | 11 #include "third_party/webrtc/api/test/fakeconstraints.h" |
| 12 #include "third_party/libjingle/source/talk/app/webrtc/videosourceinterface.h" | 12 #include "third_party/webrtc/api/videosourceinterface.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 namespace protocol { | 15 namespace protocol { |
| 16 | 16 |
| 17 const char kStreamLabel[] = "screen_stream"; | 17 const char kStreamLabel[] = "screen_stream"; |
| 18 const char kVideoLabel[] = "screen_video"; | 18 const char kVideoLabel[] = "screen_video"; |
| 19 | 19 |
| 20 WebrtcVideoStream::WebrtcVideoStream() {} | 20 WebrtcVideoStream::WebrtcVideoStream() {} |
| 21 | 21 |
| 22 WebrtcVideoStream::~WebrtcVideoStream() { | 22 WebrtcVideoStream::~WebrtcVideoStream() { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 NOTIMPLEMENTED(); | 84 NOTIMPLEMENTED(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void WebrtcVideoStream::SetSizeCallback(const SizeCallback& size_callback) { | 87 void WebrtcVideoStream::SetSizeCallback(const SizeCallback& size_callback) { |
| 88 if (capturer_adapter_) | 88 if (capturer_adapter_) |
| 89 capturer_adapter_->SetSizeCallback(size_callback); | 89 capturer_adapter_->SetSizeCallback(size_callback); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace protocol | 92 } // namespace protocol |
| 93 } // namespace remoting | 93 } // namespace remoting |
| OLD | NEW |