Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: media/audio/audio_manager.cc

Issue 19622002: Use a direct include of the message_loop header in media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/audio/audio_low_latency_input_output_unittest.cc ('k') | media/audio/audio_output_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698