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

Side by Side Diff: components/nacl/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: int64_t to int64 Created 7 years, 4 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/process.h" 10 #include "base/process/process.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // A renderer sends this to the browser process when it wants to start 46 // A renderer sends this to the browser process when it wants to start
47 // a new instance of the Native Client process. The browser will launch 47 // a new instance of the Native Client process. The browser will launch
48 // the process and return an IPC channel handle. This handle will only 48 // the process and return an IPC channel handle. This handle will only
49 // be valid if the NaCl IPC proxy is enabled. 49 // be valid if the NaCl IPC proxy is enabled.
50 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl, 50 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl,
51 nacl::NaClLaunchParams /* launch_params */, 51 nacl::NaClLaunchParams /* launch_params */,
52 nacl::NaClLaunchResult /* launch_result */, 52 nacl::NaClLaunchResult /* launch_result */,
53 std::string /* error_message */) 53 std::string /* error_message */)
54 54
55 // A renderer sends this to the browser process when it wants to 55 // A renderer sends this to the browser process when it wants to
56 // ensure that PNaCl is installed.
57 IPC_MESSAGE_CONTROL1(NaClHostMsg_EnsurePnaclInstalled,
58 int /* pp_instance */)
59
60 // The browser replies to the renderer's request to ensure that
61 // PNaCl is installed.
62 IPC_MESSAGE_CONTROL2(NaClViewMsg_EnsurePnaclInstalledReply,
63 int /* pp_instance */,
64 bool /* success */)
65
66 // The browser may send a progress event for the renderer's request
67 // to ensure that PNaCl is installed.
68 IPC_MESSAGE_CONTROL3(NaClViewMsg_EnsurePnaclInstalledProgress,
69 int /* pp_instance */,
70 int64 /* current_progress */,
71 int64 /* total */)
72
73 // A renderer sends this to the browser process when it wants to
56 // open a file for from the Pnacl component directory. 74 // open a file for from the Pnacl component directory.
57 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD, 75 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD,
58 std::string /* name of requested PNaCl file */, 76 std::string /* name of requested PNaCl file */,
59 IPC::PlatformFileForTransit /* output file */) 77 IPC::PlatformFileForTransit /* output file */)
60 78
61 // A renderer sends this to the browser process when it wants to 79 // A renderer sends this to the browser process when it wants to
62 // create a temporary file. 80 // create a temporary file.
63 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, 81 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile,
64 IPC::PlatformFileForTransit /* out file */) 82 IPC::PlatformFileForTransit /* out file */)
65 83
(...skipping 23 matching lines...) Expand all
89 int /* Error ID */) 107 int /* Error ID */)
90 108
91 // A renderer sends this to the browser process when it wants to 109 // A renderer sends this to the browser process when it wants to
92 // open a NaCl executable file from an installed application directory. 110 // open a NaCl executable file from an installed application directory.
93 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable, 111 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable,
94 int /* render_view_id */, 112 int /* render_view_id */,
95 GURL /* URL of NaCl executable file */, 113 GURL /* URL of NaCl executable file */,
96 IPC::PlatformFileForTransit /* output file */, 114 IPC::PlatformFileForTransit /* output file */,
97 uint64 /* file_token_lo */, 115 uint64 /* file_token_lo */,
98 uint64 /* file_token_hi */) 116 uint64 /* file_token_hi */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698