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

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

Issue 1892433002: Moving device description utils from AudioManager[Base] into AudioDeviceDescription; to be shared b… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 4 years, 7 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
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 7 #include <stdint.h>
8 8
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/command_line.h" 11 #include "base/command_line.h"
12 #include "base/debug/alias.h" 12 #include "base/debug/alias.h"
13 #include "base/debug/crash_logging.h" 13 #include "base/debug/crash_logging.h"
14 #include "base/debug/dump_without_crashing.h" 14 #include "base/debug/dump_without_crashing.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/metrics/histogram_macros.h" 19 #include "base/metrics/histogram_macros.h"
20 #include "base/power_monitor/power_monitor.h" 20 #include "base/power_monitor/power_monitor.h"
21 #include "base/strings/stringprintf.h" 21 #include "base/strings/stringprintf.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "media/audio/fake_audio_log_factory.h" 23 #include "media/audio/fake_audio_log_factory.h"
24 #include "media/base/media_resources.h"
25 #include "media/base/media_switches.h" 24 #include "media/base/media_switches.h"
26 25
27 #if defined(OS_WIN) 26 #if defined(OS_WIN)
28 #include "base/win/scoped_com_initializer.h" 27 #include "base/win/scoped_com_initializer.h"
29 #include "media/audio/win/core_audio_util_win.h" 28 #include "media/audio/win/core_audio_util_win.h"
30 #endif 29 #endif
31 30
32 namespace media { 31 namespace media {
33 namespace { 32 namespace {
34 33
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 const std::string& AudioManager::GetGlobalAppName() { 352 const std::string& AudioManager::GetGlobalAppName() {
354 return g_helper.Pointer()->app_name(); 353 return g_helper.Pointer()->app_name();
355 } 354 }
356 #endif 355 #endif
357 356
358 // static 357 // static
359 AudioManager* AudioManager::Get() { 358 AudioManager* AudioManager::Get() {
360 return g_last_created; 359 return g_last_created;
361 } 360 }
362 361
363 // static
364 std::string AudioManager::GetDefaultDeviceName() {
365 #if !defined(OS_IOS)
366 return GetLocalizedStringUTF8(DEFAULT_AUDIO_DEVICE_NAME);
367 #else
368 NOTREACHED();
369 return "";
370 #endif
371 }
372
373 // static
374 std::string AudioManager::GetCommunicationsDeviceName() {
375 #if defined(OS_WIN)
376 return GetLocalizedStringUTF8(COMMUNICATIONS_AUDIO_DEVICE_NAME);
377 #else
378 NOTREACHED();
379 return "";
380 #endif
381 }
382
383 } // namespace media 362 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698