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

Unified Diff: content/public/browser/media_observer.h

Issue 10928043: Media Related changes for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename REQUEST_*->MEDIA_REQUEST_* Created 8 years, 2 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: content/public/browser/media_observer.h
diff --git a/content/public/browser/media_observer.h b/content/public/browser/media_observer.h
index f7ae0dce3547048fa00a84bfcf4a7b4e3ca80c9c..7e33d89d35ade10d7972cb4edb20a7213a94b41d 100644
--- a/content/public/browser/media_observer.h
+++ b/content/public/browser/media_observer.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
#define CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
+#include "content/public/browser/media_request_state.h"
#include "content/public/common/media_stream_request.h"
namespace media {
@@ -41,13 +42,20 @@ class MediaObserver {
virtual void OnCaptureDevicesOpened(
int render_process_id,
int render_view_id,
- const content::MediaStreamDevices& devices) = 0;
+ const 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;
+ const MediaStreamDevices& devices) = 0;
+
+ // Called when a media request changes state.
+ virtual void OnMediaRequestStateChanged(
+ int render_process_id,
+ int render_view_id,
+ const MediaStreamDevice& device,
+ MediaRequestState state) = 0;
protected:
virtual ~MediaObserver() {}

Powered by Google App Engine
This is Rietveld 408576698