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

Side by Side Diff: src/trusted/service_runtime/web_worker_stub.c

Issue 389022: first step in factoring out code dealing with elf into a separate library.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « src/trusted/service_runtime/service_runtime.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2008, Google Inc. 2 * Copyright 2008, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 * Ensure this operating system platform is supported. 159 * Ensure this operating system platform is supported.
160 */ 160 */
161 if (!NaClOsIsSupported()) { 161 if (!NaClOsIsSupported()) {
162 goto done; 162 goto done;
163 } 163 }
164 /* 164 /*
165 * Load the NaCl module from the memory file. 165 * Load the NaCl module from the memory file.
166 */ 166 */
167 if (LOAD_OK != NaClAppLoadFile((struct Gio *) &gf, 167 if (LOAD_OK != NaClAppLoadFile((struct Gio *) &gf,
168 *nap, 168 *nap,
169 NACL_ABI_MISMATCH_OPTION_ABORT)) { 169 NACL_ABI_CHECK_OPTION_CHECK)) {
170 goto done; 170 goto done;
171 } 171 }
172 /* 172 /*
173 * Close the memory pseudo-file used for passing in the .nexe. 173 * Close the memory pseudo-file used for passing in the .nexe.
174 */ 174 */
175 if ((*((struct Gio *) &gf)->vtbl->Close)((struct Gio *) &gf) == -1) { 175 if ((*((struct Gio *) &gf)->vtbl->Close)((struct Gio *) &gf) == -1) {
176 goto done; 176 goto done;
177 } 177 }
178 (*((struct Gio *) &gf)->vtbl->Dtor)((struct Gio *) &gf); 178 (*((struct Gio *) &gf)->vtbl->Dtor)((struct Gio *) &gf);
179 179
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 450 }
451 451
452 /* 452 /*
453 * Part of the initialization of a worker. Sends the descriptor to the 453 * Part of the initialization of a worker. Sends the descriptor to the
454 * worker library to indicate where to send postMessage RPCs. 454 * worker library to indicate where to send postMessage RPCs.
455 */ 455 */
456 int NaClSrpcSendUpcallDesc(struct NaClSrpcChannel *channel, 456 int NaClSrpcSendUpcallDesc(struct NaClSrpcChannel *channel,
457 struct NaClDesc *nacl_desc) { 457 struct NaClDesc *nacl_desc) {
458 return NaClSrpcInvokeByName(channel, "setUpcallDesc", nacl_desc); 458 return NaClSrpcInvokeByName(channel, "setUpcallDesc", nacl_desc);
459 } 459 }
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/service_runtime.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698