OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/common/nacl_types.h" | |
6 | |
7 namespace nacl { | |
8 | |
9 NaClStartParams::NaClStartParams() | |
10 : validation_cache_enabled(false), | |
11 enable_exception_handling(false), | |
12 enable_debug_stub(false), | |
13 enable_ipc_proxy(false), | |
14 uses_irt(false), | |
15 enable_dyncode_syscalls(false) { | |
16 } | |
17 | |
18 NaClStartParams::~NaClStartParams() { | |
19 } | |
20 | |
21 NaClLaunchParams::NaClLaunchParams() | |
22 : render_view_id(0), | |
23 permission_bits(0), | |
24 uses_irt(false), | |
25 enable_dyncode_syscalls(false), | |
26 enable_exception_handling(false) { | |
27 } | |
28 | |
29 NaClLaunchParams::NaClLaunchParams(const std::string& manifest_url, | |
30 int render_view_id, | |
31 uint32 permission_bits, | |
32 bool uses_irt, | |
33 bool enable_dyncode_syscalls, | |
34 bool enable_exception_handling) | |
35 : manifest_url(manifest_url), | |
36 render_view_id(render_view_id), | |
37 permission_bits(permission_bits), | |
38 uses_irt(uses_irt), | |
39 enable_dyncode_syscalls(enable_dyncode_syscalls), | |
40 enable_exception_handling(enable_exception_handling) { | |
41 } | |
42 | |
43 NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& l) { | |
44 manifest_url = l.manifest_url; | |
45 render_view_id = l.render_view_id; | |
46 permission_bits = l.permission_bits; | |
47 uses_irt = l.uses_irt; | |
48 enable_dyncode_syscalls = l.enable_dyncode_syscalls; | |
49 enable_exception_handling = l.enable_exception_handling; | |
50 } | |
51 | |
52 NaClLaunchParams::~NaClLaunchParams() { | |
53 } | |
54 | |
55 } // namespace nacl | |
OLD | NEW |