| 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 "components/html_viewer/media_factory.h" | 5 #include "components/html_viewer/media_factory.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 10 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 11 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 12 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 13 #include "media/audio/audio_manager.h" | 15 #include "media/audio/audio_manager.h" |
| 14 #include "media/audio/audio_manager_base.h" | 16 #include "media/audio/audio_manager_base.h" |
| 15 #include "media/audio/audio_output_stream_sink.h" | 17 #include "media/audio/audio_output_stream_sink.h" |
| 16 #include "media/base/audio_hardware_config.h" | 18 #include "media/base/audio_hardware_config.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 scoped_refptr<base::SingleThreadTaskRunner> | 177 scoped_refptr<base::SingleThreadTaskRunner> |
| 176 MediaFactory::GetMediaThreadTaskRunner() { | 178 MediaFactory::GetMediaThreadTaskRunner() { |
| 177 if (!media_thread_.IsRunning()) | 179 if (!media_thread_.IsRunning()) |
| 178 media_thread_.Start(); | 180 media_thread_.Start(); |
| 179 | 181 |
| 180 return media_thread_.task_runner(); | 182 return media_thread_.task_runner(); |
| 181 } | 183 } |
| 182 #endif // !defined(OS_ANDROID) | 184 #endif // !defined(OS_ANDROID) |
| 183 | 185 |
| 184 } // namespace html_viewer | 186 } // namespace html_viewer |
| OLD | NEW |