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

Unified Diff: content/public/browser/media_observer.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 | « content/browser/renderer_host/media/mock_media_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/media_observer.h
diff --git a/content/public/browser/media_observer.h b/content/public/browser/media_observer.h
index c938b1c3134018aacb6234073be3474dc2210f74..091a3b7d0d0482fc3239f2a86bbf6e56bc54e001 100644
--- a/content/public/browser/media_observer.h
+++ b/content/public/browser/media_observer.h
@@ -6,6 +6,8 @@
#define CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
#pragma once
+#include "content/public/common/media_stream_request.h"
+
namespace media {
struct MediaLogEvent;
}
@@ -36,6 +38,18 @@ class MediaObserver {
virtual void OnMediaEvent(int render_process_id,
const media::MediaLogEvent& event) = 0;
+ // Called when capture devices are opened.
+ virtual void OnCaptureDevicesOpened(
+ int render_process_id,
+ int render_view_id,
+ const content::MediaStreamDevices& devices) = 0;
+
+ // Called when the opened capture devices are closed.
+ virtual void OnCaptureDevicesClosed(
+ int render_process_id,
+ int render_view_id,
+ const content::MediaStreamDevices& devices) = 0;
+
protected:
virtual ~MediaObserver() {}
};
« no previous file with comments | « content/browser/renderer_host/media/mock_media_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698