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

Side by Side Diff: components/nacl/common/nacl_types.h

Issue 177113009: Support non-SFI mode in NaCl manifest file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 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 | « components/nacl/common/nacl_messages.h ('k') | components/nacl/common/nacl_types.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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Chrome version string. Sending the version string over IPC avoids linkage 53 // Chrome version string. Sending the version string over IPC avoids linkage
54 // issues in cases where NaCl is not compiled into the main Chromium 54 // issues in cases where NaCl is not compiled into the main Chromium
55 // executable or DLL. 55 // executable or DLL.
56 std::string version; 56 std::string version;
57 57
58 bool enable_exception_handling; 58 bool enable_exception_handling;
59 bool enable_debug_stub; 59 bool enable_debug_stub;
60 bool enable_ipc_proxy; 60 bool enable_ipc_proxy;
61 bool uses_irt; 61 bool uses_irt;
62 bool enable_dyncode_syscalls; 62 bool enable_dyncode_syscalls;
63 bool enable_nonsfi_mode; 63 bool uses_nonsfi_mode;
64 }; 64 };
65 65
66 // Parameters sent to the browser process to have it launch a NaCl process. 66 // Parameters sent to the browser process to have it launch a NaCl process.
67 // 67 //
68 // If you change this, you will also need to update the IPC serialization in 68 // If you change this, you will also need to update the IPC serialization in
69 // nacl_host_messages.h. 69 // nacl_host_messages.h.
70 struct NaClLaunchParams { 70 struct NaClLaunchParams {
71 NaClLaunchParams(); 71 NaClLaunchParams();
72 NaClLaunchParams(const std::string& u, int r, uint32 p, bool uses_irt, 72 NaClLaunchParams(const std::string& u, int r, uint32 p,
73 bool uses_irt,
74 bool uses_nonsfi_mode,
73 bool enable_dyncode_syscalls, 75 bool enable_dyncode_syscalls,
74 bool enable_exception_handling, 76 bool enable_exception_handling,
75 bool enable_crash_throttling); 77 bool enable_crash_throttling);
76 NaClLaunchParams(const NaClLaunchParams& l); 78 NaClLaunchParams(const NaClLaunchParams& l);
77 ~NaClLaunchParams(); 79 ~NaClLaunchParams();
78 80
79 std::string manifest_url; 81 std::string manifest_url;
80 int render_view_id; 82 int render_view_id;
81 uint32 permission_bits; 83 uint32 permission_bits;
82 bool uses_irt; 84 bool uses_irt;
85 bool uses_nonsfi_mode;
83 bool enable_dyncode_syscalls; 86 bool enable_dyncode_syscalls;
84 bool enable_exception_handling; 87 bool enable_exception_handling;
85 bool enable_crash_throttling; 88 bool enable_crash_throttling;
86 }; 89 };
87 90
88 struct NaClLaunchResult { 91 struct NaClLaunchResult {
89 NaClLaunchResult(); 92 NaClLaunchResult();
90 NaClLaunchResult(FileDescriptor imc_channel_handle, 93 NaClLaunchResult(FileDescriptor imc_channel_handle,
91 const IPC::ChannelHandle& ppapi_ipc_channel_handle, 94 const IPC::ChannelHandle& ppapi_ipc_channel_handle,
92 const IPC::ChannelHandle& trusted_ipc_channel_handle, 95 const IPC::ChannelHandle& trusted_ipc_channel_handle,
(...skipping 10 matching lines...) Expand all
103 // For plugin loader <-> renderer control communication (loading and 106 // For plugin loader <-> renderer control communication (loading and
104 // starting nexe). 107 // starting nexe).
105 IPC::ChannelHandle trusted_ipc_channel_handle; 108 IPC::ChannelHandle trusted_ipc_channel_handle;
106 base::ProcessId plugin_pid; 109 base::ProcessId plugin_pid;
107 int plugin_child_id; 110 int plugin_child_id;
108 }; 111 };
109 112
110 } // namespace nacl 113 } // namespace nacl
111 114
112 #endif // COMPONENTS_NACL_COMMON_NACL_TYPES_H_ 115 #endif // COMPONENTS_NACL_COMMON_NACL_TYPES_H_
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_messages.h ('k') | components/nacl/common/nacl_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698