Index: content/browser/media/audio_output_stream_impl.cc |
diff --git a/content/browser/media/audio_output_stream_impl.cc b/content/browser/media/audio_output_stream_impl.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f335c057c7f4977ab6e67f035d1a4e287c13b6d6 |
--- /dev/null |
+++ b/content/browser/media/audio_output_stream_impl.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 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/browser/media/audio_output_stream_impl.h" |
+ |
+namespace content { |
+ |
+AudioOutputStreamImpl::AudioOutputStreamImpl( |
+ int stream_id, |
+ AudioOutputImpl* audio_output_impl, |
+ media::mojom::AudioOutputStreamRequest request) |
+ : stream_id_(stream_id), audio_output_impl_(audio_output_impl) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ binding_.reset(new mojo::Binding<media::mojom::AudioOutputStream>( |
+ this, std::move(request))); |
+} |
+ |
+AudioOutputStreamImpl::~AudioOutputStreamImpl() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+} |
+ |
+void AudioOutputStreamImpl::Close() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ audio_output_impl_->CloseStream(stream_id_); |
+} |
+ |
+} // namespace content |