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

Side by Side Diff: chrome/common/nacl_host_messages.h

Issue 19863003: PNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // A renderer sends this to the browser process when it wants to start 47 // A renderer sends this to the browser process when it wants to start
48 // a new instance of the Native Client process. The browser will launch 48 // a new instance of the Native Client process. The browser will launch
49 // the process and return an IPC channel handle. This handle will only 49 // the process and return an IPC channel handle. This handle will only
50 // be valid if the NaCl IPC proxy is enabled. 50 // be valid if the NaCl IPC proxy is enabled.
51 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl, 51 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl,
52 nacl::NaClLaunchParams /* launch_params */, 52 nacl::NaClLaunchParams /* launch_params */,
53 nacl::NaClLaunchResult /* launch_result */, 53 nacl::NaClLaunchResult /* launch_result */,
54 std::string /* error_message */) 54 std::string /* error_message */)
55 55
56 // A renderer sends this to the browser process when it wants to 56 // A renderer sends this to the browser process when it wants to
57 // ensure that PNaCl is installed.
58 IPC_MESSAGE_CONTROL1(NaClHostMsg_EnsurePnaclInstalled,
59 int /* pp_instance */)
60
61 // The browser replies to the renderer's request to ensure that
62 // PNaCl is installed.
63 IPC_MESSAGE_CONTROL2(NaClViewMsg_EnsurePnaclInstalledReply,
64 int /* pp_instance */,
65 bool /* success */)
66
67 // The browser may send a progress event for the renderer's request
68 // to ensure that PNaCl is installed.
69 IPC_MESSAGE_CONTROL3(NaClViewMsg_EnsurePnaclInstalledProgress,
70 int /* pp_instance */,
71 int64_t /* current_progress */,
72 int64_t /* total */)
73
74 // A renderer sends this to the browser process when it wants to
57 // open a file for from the Pnacl component directory. 75 // open a file for from the Pnacl component directory.
58 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD, 76 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD,
59 std::string /* name of requested PNaCl file */, 77 std::string /* name of requested PNaCl file */,
60 IPC::PlatformFileForTransit /* output file */) 78 IPC::PlatformFileForTransit /* output file */)
61 79
62 // A renderer sends this to the browser process when it wants to 80 // A renderer sends this to the browser process when it wants to
63 // create a temporary file. 81 // create a temporary file.
64 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, 82 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile,
65 IPC::PlatformFileForTransit /* out file */) 83 IPC::PlatformFileForTransit /* out file */)
66 84
(...skipping 23 matching lines...) Expand all
90 int /* Error ID */) 108 int /* Error ID */)
91 109
92 // A renderer sends this to the browser process when it wants to 110 // A renderer sends this to the browser process when it wants to
93 // open a NaCl executable file from an installed application directory. 111 // open a NaCl executable file from an installed application directory.
94 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable, 112 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable,
95 int /* render_view_id */, 113 int /* render_view_id */,
96 GURL /* URL of NaCl executable file */, 114 GURL /* URL of NaCl executable file */,
97 IPC::PlatformFileForTransit /* output file */, 115 IPC::PlatformFileForTransit /* output file */,
98 uint64 /* file_token_lo */, 116 uint64 /* file_token_lo */,
99 uint64 /* file_token_hi */) 117 uint64 /* file_token_hi */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698