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

Side by Side 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: Fix permission check 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Returns true if we should apply the cross-site document blocking policy to 276 // Returns true if we should apply the cross-site document blocking policy to
277 // this renderer process. Currently, we apply the policy only to a renderer 277 // this renderer process. Currently, we apply the policy only to a renderer
278 // process running on a normal page from the web. 278 // process running on a normal page from the web.
279 virtual bool ShouldEnableSiteIsolationPolicy() const; 279 virtual bool ShouldEnableSiteIsolationPolicy() const;
280 280
281 // Creates a permission client proxy for in-renderer worker. 281 // Creates a permission client proxy for in-renderer worker.
282 virtual blink::WebWorkerPermissionClientProxy* 282 virtual blink::WebWorkerPermissionClientProxy*
283 CreateWorkerPermissionClientProxy(RenderFrame* render_frame, 283 CreateWorkerPermissionClientProxy(RenderFrame* render_frame,
284 blink::WebFrame* frame); 284 blink::WebFrame* frame);
285 285
286 // Returns true if the page at |url| can use Pepper CameraDevice APIs.
287 virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url);
288
286 // Returns true if the page at |url| can use Pepper Compositor APIs. 289 // Returns true if the page at |url| can use Pepper Compositor APIs.
287 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); 290 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url);
288 291
289 // Returns true if dev channel APIs are available for plugins. 292 // Returns true if dev channel APIs are available for plugins.
290 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 293 virtual bool IsPluginAllowedToUseDevChannelAPIs();
291 294
292 // Returns a user agent override specific for |url|, or empty string if 295 // Returns a user agent override specific for |url|, or empty string if
293 // default user agent should be used. 296 // default user agent should be used.
294 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 297 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
295 }; 298 };
296 299
297 } // namespace content 300 } // namespace content
298 301
299 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 302 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698