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