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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 944033002: PPAPI: Whitelist PPB_CameraDevice_Private for some apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prepare whitelist in constructor Created 5 years, 10 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/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 0744f627ae2332aa21f493627549f4efbd4095a2..7889016b52c927c88d1d8347871eba813eaa376d 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -285,6 +285,9 @@ class CONTENT_EXPORT ContentRendererClient {
CreateWorkerPermissionClientProxy(RenderFrame* render_frame,
blink::WebFrame* frame);
+ // Returns true if the page at |url| can use Pepper CameraDevice APIs.
+ virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url);
+
// Returns true if the page at |url| can use Pepper Compositor APIs.
virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url);

Powered by Google App Engine
This is Rietveld 408576698