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

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

Issue 332463003: Pepper: Remove LOAD_MODULE SRPC call in SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for jvoung and hidehiko 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
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 #include "components/nacl/common/nacl_types.h" 5 #include "components/nacl/common/nacl_types.h"
6 #include "ipc/ipc_platform_file.h" 6 #include "ipc/ipc_platform_file.h"
7 7
8 namespace nacl { 8 namespace nacl {
9 9
10 NaClStartParams::NaClStartParams() 10 NaClStartParams::NaClStartParams()
11 : nexe_file(IPC::InvalidPlatformFileForTransit()), 11 : nexe_file(IPC::InvalidPlatformFileForTransit()),
12 nexe_token_lo(0),
13 nexe_token_hi(0),
12 validation_cache_enabled(false), 14 validation_cache_enabled(false),
13 enable_exception_handling(false), 15 enable_exception_handling(false),
14 enable_debug_stub(false), 16 enable_debug_stub(false),
15 enable_ipc_proxy(false), 17 enable_ipc_proxy(false),
16 uses_irt(false), 18 uses_irt(false),
17 enable_dyncode_syscalls(false) { 19 enable_dyncode_syscalls(false) {
18 } 20 }
19 21
20 NaClStartParams::~NaClStartParams() { 22 NaClStartParams::~NaClStartParams() {
21 } 23 }
22 24
23 NaClLaunchParams::NaClLaunchParams() 25 NaClLaunchParams::NaClLaunchParams()
24 : nexe_file(IPC::InvalidPlatformFileForTransit()), 26 : nexe_file(IPC::InvalidPlatformFileForTransit()),
27 nexe_token_lo(0),
28 nexe_token_hi(0),
25 render_view_id(0), 29 render_view_id(0),
26 permission_bits(0), 30 permission_bits(0),
27 uses_irt(false), 31 uses_irt(false),
28 enable_dyncode_syscalls(false), 32 enable_dyncode_syscalls(false),
29 enable_exception_handling(false), 33 enable_exception_handling(false),
30 enable_crash_throttling(false) { 34 enable_crash_throttling(false) {
31 } 35 }
32 36
33 NaClLaunchParams::NaClLaunchParams( 37 NaClLaunchParams::NaClLaunchParams(
34 const std::string& manifest_url, 38 const std::string& manifest_url,
35 const IPC::PlatformFileForTransit& nexe_file, 39 const IPC::PlatformFileForTransit& nexe_file,
40 uint64_t nexe_token_lo,
41 uint64_t nexe_token_hi,
36 int render_view_id, 42 int render_view_id,
37 uint32 permission_bits, 43 uint32 permission_bits,
38 bool uses_irt, 44 bool uses_irt,
39 bool uses_nonsfi_mode, 45 bool uses_nonsfi_mode,
40 bool enable_dyncode_syscalls, 46 bool enable_dyncode_syscalls,
41 bool enable_exception_handling, 47 bool enable_exception_handling,
42 bool enable_crash_throttling) 48 bool enable_crash_throttling)
43 : manifest_url(manifest_url), 49 : manifest_url(manifest_url),
44 nexe_file(nexe_file), 50 nexe_file(nexe_file),
51 nexe_token_lo(nexe_token_lo),
52 nexe_token_hi(nexe_token_hi),
45 render_view_id(render_view_id), 53 render_view_id(render_view_id),
46 permission_bits(permission_bits), 54 permission_bits(permission_bits),
47 uses_irt(uses_irt), 55 uses_irt(uses_irt),
48 uses_nonsfi_mode(uses_nonsfi_mode), 56 uses_nonsfi_mode(uses_nonsfi_mode),
49 enable_dyncode_syscalls(enable_dyncode_syscalls), 57 enable_dyncode_syscalls(enable_dyncode_syscalls),
50 enable_exception_handling(enable_exception_handling), 58 enable_exception_handling(enable_exception_handling),
51 enable_crash_throttling(enable_crash_throttling) { 59 enable_crash_throttling(enable_crash_throttling) {
52 } 60 }
53 61
54 NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& l)
55 : manifest_url(l.manifest_url),
56 nexe_file(l.nexe_file),
57 render_view_id(l.render_view_id),
58 permission_bits(l.permission_bits),
59 uses_irt(l.uses_irt),
60 uses_nonsfi_mode(l.uses_nonsfi_mode),
61 enable_dyncode_syscalls(l.enable_dyncode_syscalls),
62 enable_exception_handling(l.enable_exception_handling),
63 enable_crash_throttling(l.enable_crash_throttling) {
64 }
65
66 NaClLaunchParams::~NaClLaunchParams() { 62 NaClLaunchParams::~NaClLaunchParams() {
67 } 63 }
68 64
69 NaClLaunchResult::NaClLaunchResult() 65 NaClLaunchResult::NaClLaunchResult()
70 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), 66 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()),
71 ppapi_ipc_channel_handle(), 67 ppapi_ipc_channel_handle(),
72 trusted_ipc_channel_handle(), 68 trusted_ipc_channel_handle(),
73 plugin_pid(base::kNullProcessId), 69 plugin_pid(base::kNullProcessId),
74 plugin_child_id(0) { 70 plugin_child_id(0) {
75 } 71 }
(...skipping 10 matching lines...) Expand all
86 trusted_ipc_channel_handle(trusted_ipc_channel_handle), 82 trusted_ipc_channel_handle(trusted_ipc_channel_handle),
87 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), 83 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle),
88 plugin_pid(plugin_pid), 84 plugin_pid(plugin_pid),
89 plugin_child_id(plugin_child_id) { 85 plugin_child_id(plugin_child_id) {
90 } 86 }
91 87
92 NaClLaunchResult::~NaClLaunchResult() { 88 NaClLaunchResult::~NaClLaunchResult() {
93 } 89 }
94 90
95 } // namespace nacl 91 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698