| Index: content/renderer/media/media_stream_audio_source.cc
|
| diff --git a/content/renderer/media/media_stream_audio_source.cc b/content/renderer/media/media_stream_audio_source.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..50ef223eefda6479f7478587ef7830f6dbfbfaca
|
| --- /dev/null
|
| +++ b/content/renderer/media/media_stream_audio_source.cc
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/renderer/media/media_stream_audio_source.h"
|
| +
|
| +namespace content {
|
| +
|
| +MediaStreamAudioSource::MediaStreamAudioSource(
|
| + const StreamDeviceInfo& device_info,
|
| + const SourceStoppedCallback& stop_callback) {
|
| + SetDeviceInfo(device_info);
|
| + SetStopCallback(stop_callback);
|
| +}
|
| +
|
| +MediaStreamAudioSource::MediaStreamAudioSource() {}
|
| +
|
| +MediaStreamAudioSource::~MediaStreamAudioSource() {}
|
| +
|
| +void MediaStreamAudioSource::DoStopSource() {
|
| + audio_capturer_->Stop();
|
| +}
|
| +
|
| +void MediaStreamAudioSource::AddTrack(
|
| + const blink::WebMediaStreamTrack& track,
|
| + const blink::WebMediaConstraints& constraints,
|
| + const ConstraintsCallback& callback) {
|
| + // TODO(xians): Implement for audio sources.
|
| + NOTIMPLEMENTED();
|
| + callback.Run(this, true);
|
| +}
|
| +
|
| +void MediaStreamAudioSource::RemoveTrack(
|
| + const blink::WebMediaStreamTrack& track) {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +} // namespace content
|
|
|