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

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

Issue 332463003: Pepper: Remove LOAD_MODULE SRPC call in SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment to forward declaration Created 6 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
« 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 26 matching lines...) Expand all
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;
91 // On Windows, the HANDLE passed here is valid in the renderer's context.
92 // It's the responsibility of the browser to duplicate this handle properly
93 // for passing it to the plugin.
87 IPC::PlatformFileForTransit nexe_file; 94 IPC::PlatformFileForTransit nexe_file;
95 uint64_t nexe_token_lo;
96 uint64_t nexe_token_hi;
97
88 int render_view_id; 98 int render_view_id;
89 uint32 permission_bits; 99 uint32 permission_bits;
90 bool uses_irt; 100 bool uses_irt;
91 bool uses_nonsfi_mode; 101 bool uses_nonsfi_mode;
92 bool enable_dyncode_syscalls; 102 bool enable_dyncode_syscalls;
93 bool enable_exception_handling; 103 bool enable_exception_handling;
94 bool enable_crash_throttling; 104 bool enable_crash_throttling;
95 }; 105 };
96 106
97 struct NaClLaunchResult { 107 struct NaClLaunchResult {
(...skipping 20 matching lines...) Expand all
118 // For plugin <-> renderer ManifestService communication. 128 // For plugin <-> renderer ManifestService communication.
119 IPC::ChannelHandle manifest_service_ipc_channel_handle; 129 IPC::ChannelHandle manifest_service_ipc_channel_handle;
120 130
121 base::ProcessId plugin_pid; 131 base::ProcessId plugin_pid;
122 int plugin_child_id; 132 int plugin_child_id;
123 }; 133 };
124 134
125 } // namespace nacl 135 } // namespace nacl
126 136
127 #endif // COMPONENTS_NACL_COMMON_NACL_TYPES_H_ 137 #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