Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: content/renderer/media/video_source_handler.cc

Issue 207603003: Extract RequestInfo struct from ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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.h" 10 #include "content/renderer/media/media_stream.h"
11 #include "content/renderer/media/media_stream_dependency_factory.h" 11 #include "content/renderer/media/media_stream_dependency_factory.h"
12 #include "content/renderer/media/media_stream_registry_interface.h" 12 #include "content/renderer/media/media_stream_registry_interface.h"
13 #include "content/renderer/render_thread_impl.h" 13 #include "content/renderer/render_thread_impl.h"
14 #include "third_party/WebKit/public/platform/WebMediaStream.h" 14 #include "third_party/WebKit/public/platform/WebMediaStream.h"
15 #include "third_party/WebKit/public/platform/WebURL.h"
15 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 16 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
16 #include "third_party/libjingle/source/talk/media/base/videoframe.h" 17 #include "third_party/libjingle/source/talk/media/base/videoframe.h"
17 #include "third_party/libjingle/source/talk/media/base/videorenderer.h" 18 #include "third_party/libjingle/source/talk/media/base/videorenderer.h"
19 #include "url/gurl.h"
18 20
19 using cricket::VideoFrame; 21 using cricket::VideoFrame;
20 using cricket::VideoRenderer; 22 using cricket::VideoRenderer;
21 using webrtc::VideoSourceInterface; 23 using webrtc::VideoSourceInterface;
22 24
23 namespace content { 25 namespace content {
24 26
25 // PpFrameReceiver implements cricket::VideoRenderer so that it can be attached 27 // PpFrameReceiver implements cricket::VideoRenderer so that it can be attached
26 // to native video track's video source to receive the captured frame. 28 // to native video track's video source to receive the captured frame.
27 // It can be attached to a FrameReaderInterface to output the received frame. 29 // It can be attached to a FrameReaderInterface to output the received frame.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 receiver_->SetReader(reader); 138 receiver_->SetReader(reader);
137 } 139 }
138 140
139 VideoSourceHandler::SourceInfo::~SourceInfo() { 141 VideoSourceHandler::SourceInfo::~SourceInfo() {
140 source_->RemoveSink(receiver_.get()); 142 source_->RemoveSink(receiver_.get());
141 receiver_->SetReader(NULL); 143 receiver_->SetReader(NULL);
142 } 144 }
143 145
144 } // namespace content 146 } // namespace content
145 147
OLDNEW
« no previous file with comments | « content/renderer/media/video_destination_handler.cc ('k') | content/test/test_webkit_platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698