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 #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() |
Mark Seaborn
2014/06/30 20:01:03
Missing initialisation here
teravest
2014/06/30 22:04:56
Done.
| |
24 : nexe_file(IPC::InvalidPlatformFileForTransit()), | 26 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
25 render_view_id(0), | 27 render_view_id(0), |
26 permission_bits(0), | 28 permission_bits(0), |
27 uses_irt(false), | 29 uses_irt(false), |
28 enable_dyncode_syscalls(false), | 30 enable_dyncode_syscalls(false), |
29 enable_exception_handling(false), | 31 enable_exception_handling(false), |
30 enable_crash_throttling(false) { | 32 enable_crash_throttling(false) { |
31 } | 33 } |
32 | 34 |
33 NaClLaunchParams::NaClLaunchParams( | 35 NaClLaunchParams::NaClLaunchParams( |
34 const std::string& manifest_url, | 36 const std::string& manifest_url, |
35 const IPC::PlatformFileForTransit& nexe_file, | 37 const IPC::PlatformFileForTransit& nexe_file, |
38 uint64_t nexe_token_lo, | |
39 uint64_t nexe_token_hi, | |
36 int render_view_id, | 40 int render_view_id, |
37 uint32 permission_bits, | 41 uint32 permission_bits, |
38 bool uses_irt, | 42 bool uses_irt, |
39 bool uses_nonsfi_mode, | 43 bool uses_nonsfi_mode, |
40 bool enable_dyncode_syscalls, | 44 bool enable_dyncode_syscalls, |
41 bool enable_exception_handling, | 45 bool enable_exception_handling, |
42 bool enable_crash_throttling) | 46 bool enable_crash_throttling) |
43 : manifest_url(manifest_url), | 47 : manifest_url(manifest_url), |
44 nexe_file(nexe_file), | 48 nexe_file(nexe_file), |
49 nexe_token_lo(nexe_token_lo), | |
50 nexe_token_hi(nexe_token_hi), | |
45 render_view_id(render_view_id), | 51 render_view_id(render_view_id), |
46 permission_bits(permission_bits), | 52 permission_bits(permission_bits), |
47 uses_irt(uses_irt), | 53 uses_irt(uses_irt), |
48 uses_nonsfi_mode(uses_nonsfi_mode), | 54 uses_nonsfi_mode(uses_nonsfi_mode), |
49 enable_dyncode_syscalls(enable_dyncode_syscalls), | 55 enable_dyncode_syscalls(enable_dyncode_syscalls), |
50 enable_exception_handling(enable_exception_handling), | 56 enable_exception_handling(enable_exception_handling), |
51 enable_crash_throttling(enable_crash_throttling) { | 57 enable_crash_throttling(enable_crash_throttling) { |
52 } | 58 } |
53 | 59 |
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() { | 60 NaClLaunchParams::~NaClLaunchParams() { |
67 } | 61 } |
68 | 62 |
69 NaClLaunchResult::NaClLaunchResult() | 63 NaClLaunchResult::NaClLaunchResult() |
70 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), | 64 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), |
71 ppapi_ipc_channel_handle(), | 65 ppapi_ipc_channel_handle(), |
72 trusted_ipc_channel_handle(), | 66 trusted_ipc_channel_handle(), |
73 plugin_pid(base::kNullProcessId), | 67 plugin_pid(base::kNullProcessId), |
74 plugin_child_id(0) { | 68 plugin_child_id(0) { |
75 } | 69 } |
(...skipping 10 matching lines...) Expand all Loading... | |
86 trusted_ipc_channel_handle(trusted_ipc_channel_handle), | 80 trusted_ipc_channel_handle(trusted_ipc_channel_handle), |
87 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), | 81 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), |
88 plugin_pid(plugin_pid), | 82 plugin_pid(plugin_pid), |
89 plugin_child_id(plugin_child_id) { | 83 plugin_child_id(plugin_child_id) { |
90 } | 84 } |
91 | 85 |
92 NaClLaunchResult::~NaClLaunchResult() { | 86 NaClLaunchResult::~NaClLaunchResult() { |
93 } | 87 } |
94 | 88 |
95 } // namespace nacl | 89 } // namespace nacl |
OLD | NEW |