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

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

Issue 272043003: Renamed MediaStreamDependencyFactory to PeerConnectionDependencyFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 7 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 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/media_stream_audio_source.h" 5 #include "content/renderer/media/media_stream_audio_source.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 MediaStreamAudioSource::MediaStreamAudioSource( 9 MediaStreamAudioSource::MediaStreamAudioSource(
10 int render_view_id, 10 int render_view_id,
11 const StreamDeviceInfo& device_info, 11 const StreamDeviceInfo& device_info,
12 const SourceStoppedCallback& stop_callback, 12 const SourceStoppedCallback& stop_callback,
13 MediaStreamDependencyFactory* factory) 13 PeerConnectionDependencyFactory* factory)
14 : render_view_id_(render_view_id), 14 : render_view_id_(render_view_id),
15 factory_(factory) { 15 factory_(factory) {
16 SetDeviceInfo(device_info); 16 SetDeviceInfo(device_info);
17 SetStopCallback(stop_callback); 17 SetStopCallback(stop_callback);
18 } 18 }
19 19
20 MediaStreamAudioSource::MediaStreamAudioSource() 20 MediaStreamAudioSource::MediaStreamAudioSource()
21 : render_view_id_(-1), 21 : render_view_id_(-1),
22 factory_(NULL) { 22 factory_(NULL) {
23 } 23 }
(...skipping 23 matching lines...) Expand all
47 StopSource(); 47 StopSource();
48 return; 48 return;
49 } 49 }
50 } 50 }
51 51
52 factory_->CreateLocalAudioTrack(track); 52 factory_->CreateLocalAudioTrack(track);
53 callback.Run(this, true); 53 callback.Run(this, true);
54 } 54 }
55 55
56 } // namespace content 56 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_source.h ('k') | content/renderer/media/media_stream_center.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698