OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_HELPER_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_HELPER_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "ppapi/shared_impl/ppapi_permissions.h" |
| 11 |
| 12 namespace IPC { |
| 13 struct ChannelHandle; |
| 14 } |
| 15 |
| 16 namespace webkit { |
| 17 namespace ppapi { |
| 18 class PluginInstance; |
| 19 class PluginModule; |
| 20 } |
| 21 } |
| 22 |
| 23 namespace content { |
| 24 |
| 25 // Creates a NaCl plugin module and sets up the out-of-process proxy to |
| 26 // support it. Returns 'true' if the NaCl plugin module is successfully |
| 27 // created and the instance is proxied. |
| 28 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> |
| 29 CreateNaClPluginModule( |
| 30 webkit::ppapi::PluginInstance* plugin_instance, |
| 31 ppapi::PpapiPermissions permissions, |
| 32 const IPC::ChannelHandle& channel_handle, |
| 33 int nacl_process_id); |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_HELPER_H_ |
| 38 |
OLD | NEW |