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

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

Issue 9845033: Move the MediaObserver getter from ResourceContext to ContentBrowserClient, since we only need to s… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix dcheck Created 8 years, 9 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/render_process_host_impl.cc ('k') | content/public/browser/media_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
===================================================================
--- content/public/browser/content_browser_client.h (revision 128803)
+++ content/public/browser/content_browser_client.h (working copy)
@@ -63,10 +63,11 @@
class BrowserChildProcessHost;
class BrowserContext;
class BrowserMainParts;
+class MediaObserver;
+class QuotaPermissionContext;
class RenderProcessHost;
-class QuotaPermissionContext;
+class RenderViewHost;
class ResourceContext;
-class RenderViewHost;
class SiteInstance;
class SpeechInputManagerDelegate;
class WebContents;
@@ -292,6 +293,10 @@
int render_process_id,
int render_view_id) = 0;
+ // Returns a a class to get notifications about media event. The embedder can
+ // return NULL if they're not interested.
+ virtual MediaObserver* GetMediaObserver() = 0;
+
// Asks permission to use the camera and/or microphone. If permission is
// granted, a call should be made to |callback| with the devices. If the
// request is denied, a call should be made to |callback| with an empty list
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/browser/media_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698