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 "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 namespace { | 15 namespace { |
16 AudioManager* g_last_created = NULL; | 16 AudioManager* g_last_created = NULL; |
17 } | 17 } |
18 | 18 |
19 // Forward declaration of the platform specific AudioManager factory function. | 19 // Forward declaration of the platform specific AudioManager factory function. |
20 AudioManager* CreateAudioManager(); | 20 AudioManager* CreateAudioManager(); |
21 | 21 |
22 AudioManager::AudioManager() { | 22 AudioManager::AudioManager() { |
(...skipping 10 matching lines...) Expand all Loading... |
33 g_last_created = CreateAudioManager(); | 33 g_last_created = CreateAudioManager(); |
34 return g_last_created; | 34 return g_last_created; |
35 } | 35 } |
36 | 36 |
37 // static | 37 // static |
38 AudioManager* AudioManager::Get() { | 38 AudioManager* AudioManager::Get() { |
39 return g_last_created; | 39 return g_last_created; |
40 } | 40 } |
41 | 41 |
42 } // namespace media | 42 } // namespace media |
OLD | NEW |