OLD | NEW |
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 const std::string& value); | 232 const std::string& value); |
233 | 233 |
234 // Allows an embedder to return custom PPAPI interfaces. | 234 // Allows an embedder to return custom PPAPI interfaces. |
235 virtual const void* CreatePPAPIInterface( | 235 virtual const void* CreatePPAPIInterface( |
236 const std::string& interface_name); | 236 const std::string& interface_name); |
237 | 237 |
238 // Returns true if the given Pepper plugin is external (requiring special | 238 // Returns true if the given Pepper plugin is external (requiring special |
239 // startup steps). | 239 // startup steps). |
240 virtual bool IsExternalPepperPlugin(const std::string& module_name); | 240 virtual bool IsExternalPepperPlugin(const std::string& module_name); |
241 | 241 |
242 // Returns true if plugin living in the container can use | |
243 // pp::FileIO::RequestOSFileHandle. | |
244 // TODO(teravest): Remove this when FileIO is moved to the browser. | |
245 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | |
246 blink::WebPluginContainer* container); | |
247 | |
248 // Returns whether BrowserPlugin should be allowed within the |container|. | 242 // Returns whether BrowserPlugin should be allowed within the |container|. |
249 virtual bool AllowBrowserPlugin(blink::WebPluginContainer* container); | 243 virtual bool AllowBrowserPlugin(blink::WebPluginContainer* container); |
250 | 244 |
251 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 245 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
252 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 246 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
253 | 247 |
254 // Gives the embedder a chance to register the key system(s) it supports by | 248 // Gives the embedder a chance to register the key system(s) it supports by |
255 // populating |key_systems|. | 249 // populating |key_systems|. |
256 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems); | 250 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems); |
257 | 251 |
(...skipping 11 matching lines...) Expand all Loading... |
269 | 263 |
270 // Creates a permission client proxy for in-renderer worker. | 264 // Creates a permission client proxy for in-renderer worker. |
271 virtual blink::WebWorkerPermissionClientProxy* | 265 virtual blink::WebWorkerPermissionClientProxy* |
272 CreateWorkerPermissionClientProxy(RenderView* render_view, | 266 CreateWorkerPermissionClientProxy(RenderView* render_view, |
273 blink::WebFrame* frame); | 267 blink::WebFrame* frame); |
274 }; | 268 }; |
275 | 269 |
276 } // namespace content | 270 } // namespace content |
277 | 271 |
278 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 272 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |