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..413d5676b9dba092c3fb0d5e6b9f314f6cb97a11 |
--- /dev/null |
+++ b/content/browser/media/audio_output_stream_impl.cc |
@@ -0,0 +1,32 @@ |
+// 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, |
+ int render_frame_id, |
+ AudioOutputImpl* audio_output_impl, |
+ media::mojom::AudioOutputStreamRequest request) |
+ : stream_id_(stream_id), |
+ render_frame_id_(render_frame_id), |
+ audio_output_impl_(audio_output_impl), |
+ binding_(this, std::move(request)) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ LOG(ERROR) << "stream_id" << stream_id_; |
+} |
+ |
+AudioOutputStreamImpl::~AudioOutputStreamImpl() { |
+ LOG(ERROR) << "~AudioOutputStreamImpl" << stream_id_; |
+ // DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+} |
+ |
+void AudioOutputStreamImpl::Close() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ audio_output_impl_->CloseStream(stream_id_); |
+} |
+ |
+} // namespace content |