| Index: src/shared/ppapi_proxy/plugin_globals.cc
|
| ===================================================================
|
| --- src/shared/ppapi_proxy/plugin_globals.cc (revision 6384)
|
| +++ src/shared/ppapi_proxy/plugin_globals.cc (working copy)
|
| @@ -155,6 +155,26 @@
|
| thread_funcs = *new_funcs;
|
| }
|
|
|
| +int PpapiPluginPreInit() {
|
| + if (!NaClSrpcModuleInit()) {
|
| + return 1;
|
| + }
|
| + NaClLogModuleInit(); // Enable NaClLog'ing used by CHECK().
|
| + PpapiPluginRegisterDefaultThreadCreator();
|
| + // Designate this as the main thread for PPB_Core::IsMainThread().
|
| + ppapi_proxy::PluginCore::MarkMainThread();
|
| + return 0;
|
| +}
|
| +
|
| +int PpapiPluginPostInit() {
|
| + if (!NaClSrpcAcceptClientConnection(PppRpcs::srpc_methods)) {
|
| + return 1;
|
| + }
|
| + NaClSrpcModuleFini();
|
| +
|
| + return 0;
|
| +}
|
| +
|
| int PpapiPluginMain() {
|
| if (getenv("NACL_LD_ACCEPTS_PLUGIN_CONNECTION") != NULL) {
|
| // Send a message to the page to ask it to reinitialise the
|
|
|