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

Unified Diff: chrome/browser/chromeos/audio_handler.h

Issue 3026028: Patch pulseaudio memory leak (Closed)
Patch Set: cleanup Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/audio_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/audio_handler.h
diff --git a/chrome/browser/chromeos/audio_handler.h b/chrome/browser/chromeos/audio_handler.h
index 1394b2a6f56e0d95c3ca38abea37f61566f4c0c2..b1aea3e43791c63360a9834268b77bf54bc5f5c6 100644
--- a/chrome/browser/chromeos/audio_handler.h
+++ b/chrome/browser/chromeos/audio_handler.h
@@ -41,13 +41,15 @@ class AudioHandler {
// Mutes all audio. Non-blocking call.
void SetMute(bool do_mute);
+ // AudioHandler is a singleton initialized at startup. Use this to determine
+ // if there is a valid connection to a mixer.
+ bool IsValid();
+
private:
// Defines the delete on exit Singleton traits we like. Best to have this
// and constructor/destructor private as recommended for Singletons.
friend struct DefaultSingletonTraits<AudioHandler>;
- void OnMixerInitialized(bool success);
-
AudioHandler();
virtual ~AudioHandler();
bool VerifyMixerConnection();
« no previous file with comments | « no previous file | chrome/browser/chromeos/audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698