| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/video_source_handler.h" | 5 #include "content/renderer/media/video_source_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "content/renderer/media/media_stream_dependency_factory.h" | 10 #include "content/renderer/media/media_stream_dependency_factory.h" |
| 11 #include "content/renderer/media/media_stream_registry_interface.h" | 11 #include "content/renderer/media/media_stream_registry_interface.h" |
| 12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStream.h" | 13 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistr
y.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistr
y.h" |
| 15 #include "third_party/libjingle/source/talk/media/base/videoframe.h" | 15 #include "third_party/libjingle/source/talk/media/base/videoframe.h" |
| 16 #include "third_party/libjingle/source/talk/media/base/videorenderer.h" | 16 #include "third_party/libjingle/source/talk/media/base/videorenderer.h" |
| 17 | 17 |
| 18 using cricket::VideoFrame; | 18 using cricket::VideoFrame; |
| 19 using cricket::VideoRenderer; | 19 using cricket::VideoRenderer; |
| 20 using webrtc::VideoSourceInterface; | 20 using webrtc::VideoSourceInterface; |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 | 23 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 std::map<FrameReaderInterface*, VideoRenderer*>::iterator it; | 142 std::map<FrameReaderInterface*, VideoRenderer*>::iterator it; |
| 143 it = reader_to_receiver_.find(reader); | 143 it = reader_to_receiver_.find(reader); |
| 144 if (it == reader_to_receiver_.end()) { | 144 if (it == reader_to_receiver_.end()) { |
| 145 return NULL; | 145 return NULL; |
| 146 } | 146 } |
| 147 return it->second; | 147 return it->second; |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace content | 150 } // namespace content |
| 151 | 151 |
| OLD | NEW |