Add screen space opacity to opacity tree
[chromium-blink-merge.git] / ppapi / nacl_irt / plugin_startup.h
blobea14836e60eb43a33c0481011c70b45e2bbaf2cd
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_NACL_IRT_PLUGIN_STARTUP_H_
6 #define PPAPI_NACL_IRT_PLUGIN_STARTUP_H_
8 #include "ppapi/proxy/ppapi_proxy_export.h"
10 namespace base {
11 class Thread;
12 class WaitableEvent;
13 } // namespace base
15 namespace ppapi {
17 class ManifestService;
19 // Sets the IPC channels for the browser and the renderer by the given FD
20 // numbers. This will be used for non-SFI mode. Must be called before
21 // PpapiPluginMain is called.
22 PPAPI_PROXY_EXPORT void SetIPCFileDescriptors(
23 int browser_ipc_fd, int renderer_ipc_fd, int manifest_service_fd);
25 // Runs start up procedure for the plugin.
26 // Specifically, start background IO thread for IPC, and prepare
27 // shutdown event instance.
28 PPAPI_PROXY_EXPORT void StartUpPlugin();
30 // Returns IPC file descriptor for PPAPI to the browser.
31 int GetBrowserIPCFileDescriptor();
33 // Returns IPC file descriptor for PPAPI to the renderer.
34 int GetRendererIPCFileDescriptor();
36 // Returns the shutdown event instance for the plugin.
37 // Must be called after StartUpPlugin().
38 base::WaitableEvent* GetShutdownEvent();
40 // Returns the IOThread for the plugin. Must be called after StartUpPlugin().
41 base::Thread* GetIOThread();
43 // Returns the ManifestService interface. To use this, manifest_service_fd
44 // needs to be set via SetIPCFileDescriptors. Must be called after
45 // StartUpPlugin().
46 // If not available, returns NULL.
47 ManifestService* GetManifestService();
49 } // namespace ppapi
51 #endif // PPAPI_NACL_IRT_PLUGIN_STARTUP_H_