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

Unified Diff: chrome/browser/media/audio_stream_indicator.h

Issue 12744003: Audio indicator: cross platform drawing and animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 9 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/ui/browser.h » ('j') | chrome/browser/ui/browser.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/audio_stream_indicator.h
diff --git a/chrome/browser/media/audio_stream_indicator.h b/chrome/browser/media/audio_stream_indicator.h
index 8c4f5357d6e689d86243bc2de9f18f8627adb4b1..da6639934b820a18dc34765dea62b4a7ea8b7d38 100644
--- a/chrome/browser/media/audio_stream_indicator.h
+++ b/chrome/browser/media/audio_stream_indicator.h
@@ -13,6 +13,7 @@
namespace content {
class WebContents;
}
+class TabAudioIndicatorTest;
class AudioStreamIndicator
: public base::RefCountedThreadSafe<AudioStreamIndicator> {
@@ -25,10 +26,12 @@ class AudioStreamIndicator
int stream_id,
bool is_playing_and_audible);
- // This method should be called on the IO thread.
+ // This method should be called on the UI thread.
bool IsPlayingAudio(content::WebContents* contents);
private:
+ friend class TabAudioIndicatorTest;
+
struct RenderViewId {
RenderViewId(int render_process_id,
int render_view_id);
« no previous file with comments | « no previous file | chrome/browser/ui/browser.h » ('j') | chrome/browser/ui/browser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698