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

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

Issue 10168008: Show camera and microphone status indicators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated the media_stream_dispatcher_unittest Created 8 years, 8 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/app/theme/theme_resources.grd ('k') | chrome/browser/media/media_internals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_internals.h
diff --git a/chrome/browser/media/media_internals.h b/chrome/browser/media/media_internals.h
index 4a8fb7cf42e25bf55bd12ea7d3e6f5bfa0a0e03f..a1171cb6ce6f6a0e1ea623383ac67c137452c026 100644
--- a/chrome/browser/media/media_internals.h
+++ b/chrome/browser/media/media_internals.h
@@ -13,6 +13,7 @@
#include "content/public/browser/media_observer.h"
class MediaInternalsObserver;
+class MediaStreamCaptureIndicator;
namespace media {
struct MediaLogEvent;
@@ -40,6 +41,14 @@ class MediaInternals : public content::MediaObserver {
double volume) OVERRIDE;
virtual void OnMediaEvent(int render_process_id,
const media::MediaLogEvent& event) OVERRIDE;
+ virtual void OnCaptureDevicesOpened(
+ int render_process_id,
+ int render_view_id,
+ const content::MediaStreamDevices& devices) OVERRIDE;
+ virtual void OnCaptureDevicesClosed(
+ int render_process_id,
+ int render_view_id,
+ const content::MediaStreamDevices& devices) OVERRIDE;
// Methods for observers.
// Observers should add themselves on construction and remove themselves
@@ -74,6 +83,7 @@ class MediaInternals : public content::MediaObserver {
static MediaInternals* instance_;
DictionaryValue data_;
ObserverList<MediaInternalsObserver> observers_;
+ scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_;
DISALLOW_COPY_AND_ASSIGN(MediaInternals);
};
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/media/media_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698