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

Unified Diff: ppapi/proxy/plugin_main_irt.h

Issue 140573003: Connect PPAPI IPC channels for non-SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: ppapi/proxy/plugin_main_irt.h
diff --git a/ppapi/proxy/plugin_main_irt.h b/ppapi/proxy/plugin_main_irt.h
new file mode 100644
index 0000000000000000000000000000000000000000..a9eaeb1ab6af53920b4fbc04034cbe83c14522cf
--- /dev/null
+++ b/ppapi/proxy/plugin_main_irt.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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.
+
Mark Seaborn 2014/02/15 03:00:52 I see this is partly duplicating the contents of p
hidehiko 2014/02/19 13:05:02 Done. FYI: I guess we can remove the ppruntime.h
+#ifndef PPAPI_PROXY_PLUGIN_MAIN_IRT_H_
+#define PPAPI_PROXY_PLUGIN_MAIN_IRT_H_
+
+#include "ppapi/nacl_irt/irt_ppapi.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// The entry point for the main thread of the PPAPI plugin process.
+int PpapiPluginMain(void);
+
+void PpapiPluginRegisterThreadCreator(
+ const struct PP_ThreadFunctions* new_funcs);
+
+// Overwrites the IPC channels for the browser and the renderer by the given
+// FD #s. This will be used for non-SFI mode. Must be called before
+// PpapiPluginMain is called.
+void SetIPCFileDescriptors(int browser_ipc_fd, int renderer_ipc_fd);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // PPAPI_PROXY_PLUGIN_MAIN_IRT_H_

Powered by Google App Engine
This is Rietveld 408576698