| OLD | NEW |
| 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/pepper/pepper_media_stream_audio_track_host.h" | 5 #include "content/renderer/pepper/pepper_media_stream_audio_track_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/numerics/safe_math.h" | 13 #include "base/numerics/safe_math.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "media/base/audio_bus.h" | 16 #include "media/base/audio_bus.h" |
| 17 #include "ppapi/c/pp_errors.h" | 17 #include "ppapi/c/pp_errors.h" |
| 18 #include "ppapi/c/ppb_audio_buffer.h" | 18 #include "ppapi/c/ppb_audio_buffer.h" |
| 19 #include "ppapi/host/dispatch_host_message.h" | 19 #include "ppapi/host/dispatch_host_message.h" |
| 20 #include "ppapi/host/host_message_context.h" | 20 #include "ppapi/host/host_message_context.h" |
| 21 #include "ppapi/host/ppapi_host.h" | 21 #include "ppapi/host/ppapi_host.h" |
| 22 #include "ppapi/proxy/ppapi_messages.h" | 22 #include "ppapi/proxy/ppapi_messages.h" |
| 23 #include "ppapi/shared_impl/media_stream_audio_track_shared.h" | 23 #include "ppapi/shared_impl/media_stream_audio_track_shared.h" |
| 24 #include "ppapi/shared_impl/media_stream_buffer.h" | 24 #include "ppapi/shared_impl/media_stream_buffer.h" |
| 25 | 25 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // can't happen until the sink is added to the audio track below. | 370 // can't happen until the sink is added to the audio track below. |
| 371 if (format.IsValid()) | 371 if (format.IsValid()) |
| 372 audio_sink_.OnSetFormat(format); | 372 audio_sink_.OnSetFormat(format); |
| 373 | 373 |
| 374 MediaStreamAudioSink::AddToAudioTrack(&audio_sink_, track_); | 374 MediaStreamAudioSink::AddToAudioTrack(&audio_sink_, track_); |
| 375 connected_ = true; | 375 connected_ = true; |
| 376 } | 376 } |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace content | 379 } // namespace content |
| OLD | NEW |