Index: content/public/renderer/pepper_nacl_helper.h |
=================================================================== |
--- content/public/renderer/pepper_nacl_helper.h (revision 0) |
+++ content/public/renderer/pepper_nacl_helper.h (revision 0) |
@@ -0,0 +1,38 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_RENDERER_PEPPER_HELPER_H_ |
+#define CONTENT_PUBLIC_RENDERER_PEPPER_HELPER_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "content/common/content_export.h" |
+#include "ppapi/shared_impl/ppapi_permissions.h" |
+ |
+namespace IPC { |
+struct ChannelHandle; |
+} |
+ |
+namespace webkit { |
+namespace ppapi { |
+class PluginInstance; |
+class PluginModule; |
+} |
+} |
+ |
+namespace content { |
+ |
+// Creates a NaCl plugin module and sets up the out-of-process proxy to |
+// support it. Returns 'true' if the NaCl plugin module is successfully |
+// created and the instance is proxied. |
+CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> |
+CreateNaClPluginModule( |
+ webkit::ppapi::PluginInstance* plugin_instance, |
+ ppapi::PpapiPermissions permissions, |
+ const IPC::ChannelHandle& channel_handle, |
+ int nacl_process_id); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_RENDERER_PEPPER_HELPER_H_ |
+ |