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

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

Issue 227743004: Added a kEchoCancellation constraint to turn off the audio processing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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_source.h" 5 #include "content/renderer/media/media_stream_source.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 const char MediaStreamSource::kSourceId[] = "sourceId";
12
11 MediaStreamSource::MediaStreamSource() { 13 MediaStreamSource::MediaStreamSource() {
12 } 14 }
13 15
14 MediaStreamSource::~MediaStreamSource() {} 16 MediaStreamSource::~MediaStreamSource() {}
15 17
16 void MediaStreamSource::StopSource() { 18 void MediaStreamSource::StopSource() {
17 DoStopSource(); 19 DoStopSource();
18 if (!stop_callback_.is_null()) 20 if (!stop_callback_.is_null())
19 base::ResetAndReturn(&stop_callback_).Run(owner()); 21 base::ResetAndReturn(&stop_callback_).Run(owner());
20 22
21 owner().setReadyState(blink::WebMediaStreamSource::ReadyStateEnded); 23 owner().setReadyState(blink::WebMediaStreamSource::ReadyStateEnded);
22 } 24 }
23 25
24 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_source.h ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698