| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "media/audio/audio_manager.h" | 5 #include "media/audio/audio_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" |
| 18 #include "base/power_monitor/power_monitor.h" | 18 #include "base/power_monitor/power_monitor.h" |
| 19 #include "base/single_thread_task_runner.h" |
| 19 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 20 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 21 #include "media/audio/fake_audio_log_factory.h" | 22 #include "media/audio/fake_audio_log_factory.h" |
| 22 #include "media/base/media_switches.h" | 23 #include "media/base/media_switches.h" |
| 23 | 24 |
| 24 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
| 25 #include "media/audio/mac/audio_manager_mac.h" | 26 #include "media/audio/mac/audio_manager_mac.h" |
| 26 #endif | 27 #endif |
| 27 | 28 |
| 28 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 } else { | 343 } else { |
| 343 audio_thread_->GetTaskRunner()->PostTask( | 344 audio_thread_->GetTaskRunner()->PostTask( |
| 344 FROM_HERE, base::Bind(&AudioManager::ShutdownOnAudioThread, | 345 FROM_HERE, base::Bind(&AudioManager::ShutdownOnAudioThread, |
| 345 base::Unretained(this))); | 346 base::Unretained(this))); |
| 346 } | 347 } |
| 347 audio_thread_->Stop(); | 348 audio_thread_->Stop(); |
| 348 shutdown_ = true; | 349 shutdown_ = true; |
| 349 } | 350 } |
| 350 | 351 |
| 351 } // namespace media | 352 } // namespace media |
| OLD | NEW |