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

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

Issue 9369022: disable media stream creation when enable_webrtc=0 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review Created 8 years, 10 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/renderer/media/media_stream_impl.h"
6
7 #include "content/renderer/media/media_stream_dependency_factory.h"
8 #include "content/renderer/media/rtc_video_decoder.h"
9 #include "content/renderer/media/video_capture_impl_manager.h"
10 #include "content/renderer/p2p/ipc_socket_factory.h"
11
12 MediaStreamImpl::MediaStreamImpl(
13 MediaStreamDispatcher* media_stream_dispatcher,
14 content::P2PSocketDispatcher* p2p_socket_dispatcher,
15 VideoCaptureImplManager* vc_manager,
16 MediaStreamDependencyFactory* dependency_factory)
17 : dependency_factory_(dependency_factory),
18 media_stream_dispatcher_(media_stream_dispatcher),
19 p2p_socket_dispatcher_(p2p_socket_dispatcher),
20 network_manager_(NULL),
21 vc_manager_(vc_manager),
22 peer_connection_handler_(NULL),
23 message_loop_proxy_(base::MessageLoopProxy::current()),
24 signaling_thread_(NULL),
25 worker_thread_(NULL),
26 chrome_worker_thread_("Chrome_libJingle_WorkerThread") {
27 }
28
29 MediaStreamImpl::~MediaStreamImpl() {}
30
31 WebKit::WebPeerConnectionHandler* MediaStreamImpl::CreatePeerConnectionHandler(
32 WebKit::WebPeerConnectionHandlerClient* client) {
33 return NULL;
34 }
35
36 void MediaStreamImpl::ClosePeerConnection() {
37 }
38
39 webrtc::MediaStreamTrackInterface* MediaStreamImpl::GetLocalMediaStreamTrack(
40 const std::string& label) {
41 return NULL;
42 }
43
44 void MediaStreamImpl::requestUserMedia(
45 const WebKit::WebUserMediaRequest& user_media_request,
46 const WebKit::WebVector<WebKit::WebMediaStreamSource>&
47 media_stream_source_vector) {
48 }
49
50 void MediaStreamImpl::cancelUserMediaRequest(
51 const WebKit::WebUserMediaRequest& user_media_request) {
52 }
53
54 scoped_refptr<media::VideoDecoder> MediaStreamImpl::GetVideoDecoder(
55 const GURL& url,
56 media::MessageLoopFactory* message_loop_factory) {
57 return NULL;
58 }
59
60 void MediaStreamImpl::OnStreamGenerated(
61 int request_id,
62 const std::string& label,
63 const media_stream::StreamDeviceInfoArray& audio_array,
64 const media_stream::StreamDeviceInfoArray& video_array) {
65 }
66
67 void MediaStreamImpl::OnStreamGenerationFailed(int request_id) {}
68
69 void MediaStreamImpl::OnVideoDeviceFailed(const std::string& label,
70 int index) {
71 }
72
73 void MediaStreamImpl::OnAudioDeviceFailed(const std::string& label,
74 int index) {
75 }
76
77 void MediaStreamImpl::OnDevicesEnumerated(
78 int request_id,
79 const media_stream::StreamDeviceInfoArray& device_array) {
80 }
81
82 void MediaStreamImpl::OnDevicesEnumerationFailed(int request_id) {}
83
84 void MediaStreamImpl::OnDeviceOpened(
85 int request_id,
86 const std::string& label,
87 const media_stream::StreamDeviceInfo& video_device) {
88 }
89
90 void MediaStreamImpl::OnDeviceOpenFailed(int request_id) {}
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory_stub.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698