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 WebKit::WebPluginContainer* container); |
| 247 |
242 // Returns whether BrowserPlugin should be allowed within the |container|. | 248 // Returns whether BrowserPlugin should be allowed within the |container|. |
243 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container); | 249 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container); |
244 | 250 |
245 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 251 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
246 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 252 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
247 | 253 |
248 // Gives the embedder a chance to register the key system(s) it supports by | 254 // Gives the embedder a chance to register the key system(s) it supports by |
249 // populating |key_systems|. | 255 // populating |key_systems|. |
250 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems); | 256 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems); |
251 | 257 |
(...skipping 11 matching lines...) Expand all Loading... |
263 | 269 |
264 // Creates a permission client proxy for in-renderer worker. | 270 // Creates a permission client proxy for in-renderer worker. |
265 virtual WebKit::WebWorkerPermissionClientProxy* | 271 virtual WebKit::WebWorkerPermissionClientProxy* |
266 CreateWorkerPermissionClientProxy(RenderView* render_view, | 272 CreateWorkerPermissionClientProxy(RenderView* render_view, |
267 WebKit::WebFrame* frame); | 273 WebKit::WebFrame* frame); |
268 }; | 274 }; |
269 | 275 |
270 } // namespace content | 276 } // namespace content |
271 | 277 |
272 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 278 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |