OLD | NEW |
---|---|
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 #ifndef COMPONENTS_NACL_COMMON_NACL_TYPES_H_ | 5 #ifndef COMPONENTS_NACL_COMMON_NACL_TYPES_H_ |
6 #define COMPONENTS_NACL_COMMON_NACL_TYPES_H_ | 6 #define COMPONENTS_NACL_COMMON_NACL_TYPES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... | |
37 } | 37 } |
38 #endif | 38 #endif |
39 | 39 |
40 | 40 |
41 // Parameters sent to the NaCl process when we start it. | 41 // Parameters sent to the NaCl process when we start it. |
42 struct NaClStartParams { | 42 struct NaClStartParams { |
43 NaClStartParams(); | 43 NaClStartParams(); |
44 ~NaClStartParams(); | 44 ~NaClStartParams(); |
45 | 45 |
46 IPC::PlatformFileForTransit nexe_file; | 46 IPC::PlatformFileForTransit nexe_file; |
47 uint64_t nexe_token_lo; | |
48 uint64_t nexe_token_hi; | |
47 | 49 |
48 std::vector<FileDescriptor> handles; | 50 std::vector<FileDescriptor> handles; |
49 FileDescriptor debug_stub_server_bound_socket; | 51 FileDescriptor debug_stub_server_bound_socket; |
50 | 52 |
51 bool validation_cache_enabled; | 53 bool validation_cache_enabled; |
52 std::string validation_cache_key; | 54 std::string validation_cache_key; |
53 // Chrome version string. Sending the version string over IPC avoids linkage | 55 // Chrome version string. Sending the version string over IPC avoids linkage |
54 // issues in cases where NaCl is not compiled into the main Chromium | 56 // issues in cases where NaCl is not compiled into the main Chromium |
55 // executable or DLL. | 57 // executable or DLL. |
56 std::string version; | 58 std::string version; |
57 | 59 |
58 bool enable_exception_handling; | 60 bool enable_exception_handling; |
59 bool enable_debug_stub; | 61 bool enable_debug_stub; |
60 bool enable_ipc_proxy; | 62 bool enable_ipc_proxy; |
61 bool uses_irt; | 63 bool uses_irt; |
62 bool enable_dyncode_syscalls; | 64 bool enable_dyncode_syscalls; |
65 | |
63 // NOTE: Any new fields added here must also be added to the IPC | 66 // NOTE: Any new fields added here must also be added to the IPC |
64 // serialization in nacl_messages.h and (for POD fields) the constructor | 67 // serialization in nacl_messages.h and (for POD fields) the constructor |
65 // in nacl_types.cc. | 68 // in nacl_types.cc. |
66 }; | 69 }; |
67 | 70 |
68 // Parameters sent to the browser process to have it launch a NaCl process. | 71 // Parameters sent to the browser process to have it launch a NaCl process. |
69 // | 72 // |
70 // If you change this, you will also need to update the IPC serialization in | 73 // If you change this, you will also need to update the IPC serialization in |
71 // nacl_host_messages.h. | 74 // nacl_host_messages.h. |
72 struct NaClLaunchParams { | 75 struct NaClLaunchParams { |
73 NaClLaunchParams(); | 76 NaClLaunchParams(); |
74 NaClLaunchParams(const std::string& manifest_url, | 77 NaClLaunchParams(const std::string& manifest_url, |
75 const IPC::PlatformFileForTransit& nexe_file, | 78 const IPC::PlatformFileForTransit& nexe_file, |
79 uint64_t nexe_token_lo, | |
80 uint64_t nexe_token_hi, | |
76 int render_view_id, | 81 int render_view_id, |
77 uint32 permission_bits, | 82 uint32 permission_bits, |
78 bool uses_irt, | 83 bool uses_irt, |
79 bool uses_nonsfi_mode, | 84 bool uses_nonsfi_mode, |
80 bool enable_dyncode_syscalls, | 85 bool enable_dyncode_syscalls, |
81 bool enable_exception_handling, | 86 bool enable_exception_handling, |
82 bool enable_crash_throttling); | 87 bool enable_crash_throttling); |
83 NaClLaunchParams(const NaClLaunchParams& l); | |
84 ~NaClLaunchParams(); | 88 ~NaClLaunchParams(); |
85 | 89 |
86 std::string manifest_url; | 90 std::string manifest_url; |
87 IPC::PlatformFileForTransit nexe_file; | 91 IPC::PlatformFileForTransit nexe_file; |
hidehiko
2014/07/01 05:39:01
Probably, it would be better to note that, on Wind
teravest
2014/07/01 17:48:34
I've added a comment here as you suggested. I thou
| |
92 uint64_t nexe_token_lo; | |
93 uint64_t nexe_token_hi; | |
94 | |
88 int render_view_id; | 95 int render_view_id; |
89 uint32 permission_bits; | 96 uint32 permission_bits; |
90 bool uses_irt; | 97 bool uses_irt; |
91 bool uses_nonsfi_mode; | 98 bool uses_nonsfi_mode; |
92 bool enable_dyncode_syscalls; | 99 bool enable_dyncode_syscalls; |
93 bool enable_exception_handling; | 100 bool enable_exception_handling; |
94 bool enable_crash_throttling; | 101 bool enable_crash_throttling; |
95 }; | 102 }; |
96 | 103 |
97 struct NaClLaunchResult { | 104 struct NaClLaunchResult { |
(...skipping 20 matching lines...) Expand all Loading... | |
118 // For plugin <-> renderer ManifestService communication. | 125 // For plugin <-> renderer ManifestService communication. |
119 IPC::ChannelHandle manifest_service_ipc_channel_handle; | 126 IPC::ChannelHandle manifest_service_ipc_channel_handle; |
120 | 127 |
121 base::ProcessId plugin_pid; | 128 base::ProcessId plugin_pid; |
122 int plugin_child_id; | 129 int plugin_child_id; |
123 }; | 130 }; |
124 | 131 |
125 } // namespace nacl | 132 } // namespace nacl |
126 | 133 |
127 #endif // COMPONENTS_NACL_COMMON_NACL_TYPES_H_ | 134 #endif // COMPONENTS_NACL_COMMON_NACL_TYPES_H_ |
OLD | NEW |