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

Unified Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 346263006: Pepper: Narrow dev channel whitelisting behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.h
diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h
index 0cbfbaa4c5f85e29d8a281db91534ff828abe26e..32bf76fb3b7e84066146d19aea38b572d0ce1306 100644
--- a/chrome/renderer/chrome_content_renderer_client.h
+++ b/chrome/renderer/chrome_content_renderer_client.h
@@ -129,6 +129,9 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
virtual bool AllowPepperMediaStreamAPI(const GURL& url) OVERRIDE;
virtual void AddKeySystems(
std::vector<content::KeySystemInfo>* key_systems) OVERRIDE;
+ virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE;
+ virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url) OVERRIDE;
+ virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url) OVERRIDE;
// Takes ownership.
void SetExtensionDispatcherForTest(
@@ -198,6 +201,10 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_;
#endif
scoped_ptr<SearchBouncer> search_bouncer_;
+#if defined(ENABLE_PLUGINS)
+ std::set<std::string> allowed_compositor_origins_;
+ std::set<std::string> allowed_video_decode_origins_;
+#endif
};
#endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698