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

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: addressed the rest of the comments from MAD and Nico 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
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..5b1203b8a6975d7f8937f795bca398730330c14b 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,16 @@ 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 std::string& url,
+ const content::MediaStreamDevices& devices) OVERRIDE;
+ virtual void OnCaptureDevicesClosed(
+ int render_process_id,
+ int render_view_id,
+ const std::string& url,
+ const content::MediaStreamDevices& devices) OVERRIDE;
// Methods for observers.
// Observers should add themselves on construction and remove themselves
@@ -74,6 +85,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);
};

Powered by Google App Engine
This is Rietveld 408576698