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

Side by Side Diff: ppapi/nacl_irt/plugin_startup.h

Issue 231793003: Add IPC Channel for new ManifestService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/nacl_irt/manifest_service.cc ('k') | ppapi/nacl_irt/plugin_startup.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_NACL_IRT_PLUGIN_STARTUP_H_ 5 #ifndef PPAPI_NACL_IRT_PLUGIN_STARTUP_H_
6 #define PPAPI_NACL_IRT_PLUGIN_STARTUP_H_ 6 #define PPAPI_NACL_IRT_PLUGIN_STARTUP_H_
7 7
8 #include "ppapi/proxy/ppapi_proxy_export.h" 8 #include "ppapi/proxy/ppapi_proxy_export.h"
9 9
10 namespace base { 10 namespace base {
11 class Thread; 11 class Thread;
12 class WaitableEvent; 12 class WaitableEvent;
13 } // namespace base 13 } // namespace base
14 14
15 namespace ppapi { 15 namespace ppapi {
16 16
17 // Sets the IPC channels for the browser and the renderer by the given FD 17 // Sets the IPC channels for the browser and the renderer by the given FD
18 // numbers. This will be used for non-SFI mode. Must be called before 18 // numbers. This will be used for non-SFI mode. Must be called before
19 // PpapiPluginMain is called. 19 // PpapiPluginMain is called.
20 PPAPI_PROXY_EXPORT void SetIPCFileDescriptors( 20 PPAPI_PROXY_EXPORT void SetIPCFileDescriptors(
21 int browser_ipc_fd, int renderer_ipc_fd); 21 int browser_ipc_fd, int renderer_ipc_fd, int manifest_service_fd);
22 22
23 // Runs start up procedure for the plugin. 23 // Runs start up procedure for the plugin.
24 // Specifically, start background IO thread for IPC, and prepare 24 // Specifically, start background IO thread for IPC, and prepare
25 // shutdown event instance. 25 // shutdown event instance.
26 PPAPI_PROXY_EXPORT void StartUpPlugin(); 26 PPAPI_PROXY_EXPORT void StartUpPlugin();
27 27
28 // Returns IPC file descriptor for PPAPI to the browser. 28 // Returns IPC file descriptor for PPAPI to the browser.
29 int GetBrowserIPCFileDescriptor(); 29 int GetBrowserIPCFileDescriptor();
30 30
31 // Returns IPC file descriptor for PPAPI to the renderer. 31 // Returns IPC file descriptor for PPAPI to the renderer.
32 int GetRendererIPCFileDescriptor(); 32 int GetRendererIPCFileDescriptor();
33 33
34 // Returns the shutdown event instance for the plugin. 34 // Returns the shutdown event instance for the plugin.
35 // Must be called after StartUpPlugin(). 35 // Must be called after StartUpPlugin().
36 base::WaitableEvent* GetShutdownEvent(); 36 base::WaitableEvent* GetShutdownEvent();
37 37
38 // Returns the IOThread for the plugin. Must be called after StartUpPlugin(). 38 // Returns the IOThread for the plugin. Must be called after StartUpPlugin().
39 base::Thread* GetIOThread(); 39 base::Thread* GetIOThread();
40 40
41 } // namespace ppapi 41 } // namespace ppapi
42 42
43 #endif // PPAPI_NACL_IRT_PLUGIN_STARTUP_H_ 43 #endif // PPAPI_NACL_IRT_PLUGIN_STARTUP_H_
OLDNEW
« no previous file with comments | « ppapi/nacl_irt/manifest_service.cc ('k') | ppapi/nacl_irt/plugin_startup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698