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..9e4f8728164c5ff88a1104f54bcece37c05ab691 |
--- /dev/null |
+++ b/ppapi/proxy/plugin_main_irt.h |
@@ -0,0 +1,31 @@ |
+// 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. |
+ |
+#ifndef PPAPI_PROXY_PLUGIN_MAIN_IRT_H_ |
+#define PPAPI_PROXY_PLUGIN_MAIN_IRT_H_ |
+ |
+#include "ppapi/nacl_irt/irt_ppapi.h" |
+#include "ppapi/proxy/ppapi_proxy_export.h" |
Mark Seaborn
2014/02/19 17:00:30
You shouldn't have PPAPI_PROXY_EXPORT here.
That
Mark Seaborn
2014/02/19 17:07:54
Oh, was PPAPI_PROXY_EXPORT just needed to make the
hidehiko
2014/02/20 18:50:01
Exactly. Without this component build would be fai
|
+ |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
+ |
+// The entry point for the main thread of the PPAPI plugin process. |
+PPAPI_PROXY_EXPORT int PpapiPluginMain(void); |
+ |
+PPAPI_PROXY_EXPORT void PpapiPluginRegisterThreadCreator( |
+ const struct PP_ThreadFunctions* new_funcs); |
+ |
+// Overwrites the IPC channels for the browser and the renderer by the given |
Mark Seaborn
2014/02/19 17:00:30
"Overwrites" -> "Sets"?
hidehiko
2014/02/20 18:50:01
Done.
|
+// FD #s. This will be used for non-SFI mode. Must be called before |
Mark Seaborn
2014/02/19 17:00:30
Nit: '#s' -> 'numbers'. This will be read more th
hidehiko
2014/02/20 18:50:01
Done :-)
|
+// PpapiPluginMain is called. |
+PPAPI_PROXY_EXPORT void SetIPCFileDescriptors( |
+ int browser_ipc_fd, int renderer_ipc_fd); |
+ |
+#ifdef __cplusplus |
+} |
+#endif |
+ |
+#endif // PPAPI_PROXY_PLUGIN_MAIN_IRT_H_ |