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

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

Issue 2514323004: Convert NaCl renderer-browser messages to mojo. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « components/nacl/common/nacl_types.h ('k') | components/nacl/common/nacl_types_param_traits.h » ('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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "components/nacl/common/nacl_types.h" 6 #include "components/nacl/common/nacl_types.h"
7 #include "ipc/ipc_platform_file.h" 7 #include "ipc/ipc_platform_file.h"
8 8
9 namespace nacl { 9 namespace nacl {
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 NaClResourcePrefetchRequest::NaClResourcePrefetchRequest( 45 NaClResourcePrefetchRequest::NaClResourcePrefetchRequest(
46 const std::string& file_key, 46 const std::string& file_key,
47 const std::string& resource_url) 47 const std::string& resource_url)
48 : file_key(file_key), 48 : file_key(file_key),
49 resource_url(resource_url) { 49 resource_url(resource_url) {
50 } 50 }
51 51
52 NaClResourcePrefetchRequest::~NaClResourcePrefetchRequest() { 52 NaClResourcePrefetchRequest::~NaClResourcePrefetchRequest() {
53 } 53 }
54 54
55 NaClLaunchParams::NaClLaunchParams()
56 : nexe_file(IPC::InvalidPlatformFileForTransit()),
57 nexe_token_lo(0),
58 nexe_token_hi(0),
59 render_view_id(0),
60 permission_bits(0),
61 process_type(kUnknownNaClProcessType) {
62 }
63
64 NaClLaunchParams::NaClLaunchParams(
65 const std::string& manifest_url,
66 const IPC::PlatformFileForTransit& nexe_file,
67 uint64_t nexe_token_lo,
68 uint64_t nexe_token_hi,
69 const std::vector<NaClResourcePrefetchRequest>&
70 resource_prefetch_request_list,
71 int render_view_id,
72 uint32_t permission_bits,
73 bool uses_nonsfi_mode,
74 NaClAppProcessType process_type)
75 : manifest_url(manifest_url),
76 nexe_file(nexe_file),
77 nexe_token_lo(nexe_token_lo),
78 nexe_token_hi(nexe_token_hi),
79 resource_prefetch_request_list(resource_prefetch_request_list),
80 render_view_id(render_view_id),
81 permission_bits(permission_bits),
82 uses_nonsfi_mode(uses_nonsfi_mode),
83 process_type(process_type) {}
84
85 NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& other) = default;
86
87 NaClLaunchParams::~NaClLaunchParams() {
88 }
89
90 NaClLaunchResult::NaClLaunchResult()
91 : ppapi_ipc_channel_handle(),
92 trusted_ipc_channel_handle(),
93 plugin_pid(base::kNullProcessId),
94 plugin_child_id(0),
95 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) {
96 }
97
98 NaClLaunchResult::NaClLaunchResult(
99 const IPC::ChannelHandle& ppapi_ipc_channel_handle,
100 const IPC::ChannelHandle& trusted_ipc_channel_handle,
101 const IPC::ChannelHandle& manifest_service_ipc_channel_handle,
102 base::ProcessId plugin_pid,
103 int plugin_child_id,
104 base::SharedMemoryHandle crash_info_shmem_handle)
105 : ppapi_ipc_channel_handle(ppapi_ipc_channel_handle),
106 trusted_ipc_channel_handle(trusted_ipc_channel_handle),
107 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle),
108 plugin_pid(plugin_pid),
109 plugin_child_id(plugin_child_id),
110 crash_info_shmem_handle(crash_info_shmem_handle) {
111 }
112
113 NaClLaunchResult::~NaClLaunchResult() {
114 }
115
116 } // namespace nacl 55 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_types.h ('k') | components/nacl/common/nacl_types_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698