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

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

Issue 772433004: Allow the content client to override browser Mojo services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Jam's comments. Created 6 years 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index c489eee094bc17befac2e857b490d5a1f5e2464f..3c7a4dd7838be7326e714271c3baf1f4e869aa81 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -100,6 +100,7 @@ class RenderFrameHost;
class RenderProcessHost;
class RenderViewHost;
class ResourceContext;
+class ServiceRegistry;
class SiteInstance;
class SpeechRecognitionManagerDelegate;
class VibrationProvider;
@@ -594,6 +595,17 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual net::CookieStore* OverrideCookieStoreForRenderProcess(
int render_process_id);
+ // Checks if |security_origin| has permission to access the microphone or
+ // camera. Note that this does not query the user. |type| must be
+ // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
+ virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
+ const GURL& security_origin,
+ MediaStreamType type);
+
+ // Allows to override browser Mojo services exposed through the
+ // RenderProcessHost.
+ virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {}
+
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Populates |mappings| with all files that need to be mapped before launching
// a child process.
@@ -620,13 +632,6 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual ExternalVideoSurfaceContainer*
OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
#endif
-
-// Checks if |security_origin| has permission to access the microphone or
-// camera. Note that this does not query the user. |type| must be
-// MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
-virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
- const GURL& security_origin,
- MediaStreamType type);
};
} // namespace content
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698