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

Unified Diff: media/audio/audio_manager.h

Issue 1317033006: Linux: Do not use a hard coded app name for PulseAudio output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main_linux.cc ('k') | media/audio/audio_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index 1391742fe5f68a83e08da7e0aa3f052c22e5f4a9..37399739f9323385b4e7653644afa7c0a180be14 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -61,6 +61,15 @@ class MEDIA_EXPORT AudioManager {
// called previously to start the hang monitor. Does nothing on OSX.
static void EnableHangMonitor();
+#if defined(OS_LINUX)
+ // Sets the name of the audio source as seen by external apps. Only actually
+ // used with PulseAudio as of this writing.
+ static void SetGlobalAppName(const std::string& app_name);
+
+ // Returns the app name or an empty string if it is not set.
+ static const std::string& GetGlobalAppName();
+#endif
+
// Should only be used for testing. Resets a previously-set
// AudioManagerFactory. The instance of AudioManager is not affected.
static void ResetFactoryForTesting();
« no previous file with comments | « chrome/browser/chrome_browser_main_linux.cc ('k') | media/audio/audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698