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

Unified Diff: chrome/browser/media/media_internals_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: chrome/browser/media/media_internals_observer.h
diff --git a/chrome/browser/media/media_internals_observer.h b/chrome/browser/media/media_internals_observer.h
index 3c9be62d8d8647e25c165976421a4eab5c230861..d7fffc8d5b087be343d2835b084f010dad991afd 100644
--- a/chrome/browser/media/media_internals_observer.h
+++ b/chrome/browser/media/media_internals_observer.h
@@ -5,12 +5,21 @@
#ifndef CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_
#define CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_
+#include "content/public/browser/media_request_state.h"
+#include "content/public/common/media_stream_request.h"
+
// Used by MediaInternalsUI to receive callbacks on media events.
// Callbacks will be on the IO thread.
class MediaInternalsObserver {
public:
// Handle an information update consisting of a javascript function call.
- virtual void OnUpdate(const string16& javascript) = 0;
+ virtual void OnUpdate(const string16& javascript) {}
+
+ // Handle an information update related to a media stream request.
+ virtual void OnRequestUpdate(
+ const content::MediaStreamDevice& device,
+ const content::MediaRequestState state) {}
+
virtual ~MediaInternalsObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698