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

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

Issue 572973002: NaCl: Simpler validation for main nexe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 kPNaClTranslatorProcessType, 56 kPNaClTranslatorProcessType,
57 kNumNaClProcessTypes 57 kNumNaClProcessTypes
58 }; 58 };
59 59
60 // Parameters sent to the NaCl process when we start it. 60 // Parameters sent to the NaCl process when we start it.
61 struct NaClStartParams { 61 struct NaClStartParams {
62 NaClStartParams(); 62 NaClStartParams();
63 ~NaClStartParams(); 63 ~NaClStartParams();
64 64
65 IPC::PlatformFileForTransit nexe_file; 65 IPC::PlatformFileForTransit nexe_file;
66 uint64_t nexe_token_lo; 66 // Used only as a key for validation caching.
67 uint64_t nexe_token_hi; 67 base::FilePath nexe_file_path_metadata;
68 68
69 std::vector<FileDescriptor> handles; 69 std::vector<FileDescriptor> handles;
70 FileDescriptor debug_stub_server_bound_socket; 70 FileDescriptor debug_stub_server_bound_socket;
71 71
72 bool validation_cache_enabled; 72 bool validation_cache_enabled;
73 std::string validation_cache_key; 73 std::string validation_cache_key;
74 // Chrome version string. Sending the version string over IPC avoids linkage 74 // Chrome version string. Sending the version string over IPC avoids linkage
75 // issues in cases where NaCl is not compiled into the main Chromium 75 // issues in cases where NaCl is not compiled into the main Chromium
76 // executable or DLL. 76 // executable or DLL.
77 std::string version; 77 std::string version;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 base::ProcessId plugin_pid; 148 base::ProcessId plugin_pid;
149 int plugin_child_id; 149 int plugin_child_id;
150 150
151 // For NaCl <-> renderer crash information reporting. 151 // For NaCl <-> renderer crash information reporting.
152 base::SharedMemoryHandle crash_info_shmem_handle; 152 base::SharedMemoryHandle crash_info_shmem_handle;
153 }; 153 };
154 154
155 } // namespace nacl 155 } // namespace nacl
156 156
157 #endif // COMPONENTS_NACL_COMMON_NACL_TYPES_H_ 157 #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