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 "content/renderer/media/webrtc/media_stream_remote_video_source.h" | 5 #include "content/renderer/media/webrtc/media_stream_remote_video_source.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
13 #include "content/renderer/media/webrtc/track_observer.h" | 13 #include "content/renderer/media/webrtc/track_observer.h" |
14 #include "media/base/bind_to_current_loop.h" | |
15 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
16 #include "media/base/video_util.h" | 15 #include "media/base/video_util.h" |
17 #include "third_party/libjingle/source/talk/media/base/videoframe.h" | 16 #include "third_party/libjingle/source/talk/media/base/videoframe.h" |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 | 19 |
21 // Internal class used for receiving frames from the webrtc track on a | 20 // Internal class used for receiving frames from the webrtc track on a |
22 // libjingle thread and forward it to the IO-thread. | 21 // libjingle thread and forward it to the IO-thread. |
23 class MediaStreamRemoteVideoSource::RemoteVideoSourceDelegate | 22 class MediaStreamRemoteVideoSource::RemoteVideoSourceDelegate |
24 : public base::RefCountedThreadSafe<RemoteVideoSourceDelegate>, | 23 : public base::RefCountedThreadSafe<RemoteVideoSourceDelegate>, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 case webrtc::MediaStreamTrackInterface::kEnded: | 175 case webrtc::MediaStreamTrackInterface::kEnded: |
177 SetReadyState(blink::WebMediaStreamSource::ReadyStateEnded); | 176 SetReadyState(blink::WebMediaStreamSource::ReadyStateEnded); |
178 break; | 177 break; |
179 default: | 178 default: |
180 NOTREACHED(); | 179 NOTREACHED(); |
181 break; | 180 break; |
182 } | 181 } |
183 } | 182 } |
184 | 183 |
185 } // namespace content | 184 } // namespace content |
OLD | NEW |