| 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 "mojo/services/html_viewer/web_media_player_factory.h" | 5 #include "components/html_viewer/web_media_player_factory.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 11 #include "media/audio/audio_manager.h" | 11 #include "media/audio/audio_manager.h" |
| 12 #include "media/audio/audio_manager_base.h" | 12 #include "media/audio/audio_manager_base.h" |
| 13 #include "media/audio/audio_output_stream_sink.h" | 13 #include "media/audio/audio_output_stream_sink.h" |
| 14 #include "media/base/audio_hardware_config.h" | 14 #include "media/base/audio_hardware_config.h" |
| 15 #include "media/base/media.h" | 15 #include "media/base/media.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 scoped_refptr<base::SingleThreadTaskRunner> | 129 scoped_refptr<base::SingleThreadTaskRunner> |
| 130 WebMediaPlayerFactory::GetMediaThreadTaskRunner() { | 130 WebMediaPlayerFactory::GetMediaThreadTaskRunner() { |
| 131 if (!media_thread_.IsRunning()) | 131 if (!media_thread_.IsRunning()) |
| 132 media_thread_.Start(); | 132 media_thread_.Start(); |
| 133 | 133 |
| 134 return media_thread_.message_loop_proxy(); | 134 return media_thread_.message_loop_proxy(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace html_viewer | 137 } // namespace html_viewer |
| OLD | NEW |