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

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

Issue 2081183005: Use ChannelMojo from the browser to NaCl loader process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-ipc-channel-handle
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « ppapi/nacl_irt/irt_start.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 "ipc/ipc_channel_handle.h" 8 #include "ipc/ipc_channel_handle.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h" 9 #include "ppapi/proxy/ppapi_proxy_export.h"
10 10
(...skipping 10 matching lines...) Expand all
21 // This will be used for non-SFI mode. Must be called before the 21 // This will be used for non-SFI mode. Must be called before the
22 // ppapi_start() IRT interface is called. 22 // ppapi_start() IRT interface is called.
23 PPAPI_PROXY_EXPORT void SetIPCChannelHandles( 23 PPAPI_PROXY_EXPORT void SetIPCChannelHandles(
24 IPC::ChannelHandle browser_ipc_handle, 24 IPC::ChannelHandle browser_ipc_handle,
25 IPC::ChannelHandle renderer_ipc_handle, 25 IPC::ChannelHandle renderer_ipc_handle,
26 IPC::ChannelHandle manifest_service_handle); 26 IPC::ChannelHandle manifest_service_handle);
27 27
28 // Runs start up procedure for the plugin. 28 // Runs start up procedure for the plugin.
29 // Specifically, start background IO thread for IPC, and prepare 29 // Specifically, start background IO thread for IPC, and prepare
30 // shutdown event instance. 30 // shutdown event instance.
31 PPAPI_PROXY_EXPORT void StartUpPlugin(); 31 PPAPI_PROXY_EXPORT void StartUpPlugin(bool initialize_mojo);
32 32
33 // Returns IPC channel handle for PPAPI to the browser. 33 // Returns IPC channel handle for PPAPI to the browser.
34 IPC::ChannelHandle GetBrowserIPCChannelHandle(); 34 IPC::ChannelHandle GetBrowserIPCChannelHandle();
35 35
36 // Returns IPC channel handle for PPAPI to the renderer. 36 // Returns IPC channel handle for PPAPI to the renderer.
37 IPC::ChannelHandle GetRendererIPCChannelHandle(); 37 IPC::ChannelHandle GetRendererIPCChannelHandle();
38 38
39 // Returns the shutdown event instance for the plugin. 39 // Returns the shutdown event instance for the plugin.
40 // Must be called after StartUpPlugin(). 40 // Must be called after StartUpPlugin().
41 base::WaitableEvent* GetShutdownEvent(); 41 base::WaitableEvent* GetShutdownEvent();
42 42
43 // Returns the IOThread for the plugin. Must be called after StartUpPlugin(). 43 // Returns the IOThread for the plugin. Must be called after StartUpPlugin().
44 base::Thread* GetIOThread(); 44 base::Thread* GetIOThread();
45 45
46 // Returns the ManifestService interface. To use this, manifest_service_handle 46 // Returns the ManifestService interface. To use this, manifest_service_handle
47 // needs to be set via SetIPCChannelHandles. Must be called after 47 // needs to be set via SetIPCChannelHandles. Must be called after
48 // StartUpPlugin(). 48 // StartUpPlugin().
49 // If not available, returns NULL. 49 // If not available, returns NULL.
50 ManifestService* GetManifestService(); 50 ManifestService* GetManifestService();
51 51
52 } // namespace ppapi 52 } // namespace ppapi
53 53
54 #endif // PPAPI_NACL_IRT_PLUGIN_STARTUP_H_ 54 #endif // PPAPI_NACL_IRT_PLUGIN_STARTUP_H_
OLDNEW
« no previous file with comments | « ppapi/nacl_irt/irt_start.cc ('k') | ppapi/nacl_irt/plugin_startup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698