cc: Skip commit state timer on sync compositor
[chromium-blink-merge.git] / ppapi / proxy / plugin_main_irt.h
blobf9a24cb3ed4cf3a46ec5221c4661c850d08f04a2
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_PLUGIN_MAIN_IRT_H_
6 #define PPAPI_PROXY_PLUGIN_MAIN_IRT_H_
8 #include "ppapi/nacl_irt/irt_ppapi.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h"
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 // The entry point for the main thread of the PPAPI plugin process.
16 PPAPI_PROXY_EXPORT int PpapiPluginMain(void);
18 PPAPI_PROXY_EXPORT void PpapiPluginRegisterThreadCreator(
19 const struct PP_ThreadFunctions* new_funcs);
21 // Sets the IPC channels for the browser and the renderer by the given FD
22 // numbers. This will be used for non-SFI mode. Must be called before
23 // PpapiPluginMain is called.
24 PPAPI_PROXY_EXPORT void SetIPCFileDescriptors(
25 int browser_ipc_fd, int renderer_ipc_fd);
27 #ifdef __cplusplus
29 #endif
31 #endif // PPAPI_PROXY_PLUGIN_MAIN_IRT_H_