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

Unified Diff: content/public/renderer/pepper_nacl_helper.h

Issue 11140046: Add a content API to connect a Native Client module to an out-of-process PPAPI proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
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_
+

Powered by Google App Engine
This is Rietveld 408576698