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

Issue 2832093: NaCl: Allow setting up multiple sockets for subprocess instead of just one (Closed)

Created:
10 years, 4 months ago by Mark Seaborn
Modified:
9 years, 5 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, native-client-reviews_googlegroups.com, darin-cc_chromium.org, ben+cc_chromium.org, sehr (please use chromium)
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

NaCl: Allow setting up multiple sockets for subprocess instead of just one Remove the "channel number" parameter from messages, since this is now fixed in the NaCl plugin code in sel_main_chrome.c. Replace pair_ and descriptor_ with sockets_for_renderer_ and sockets_for_sel_ldr_. NaClProcessMsg_Start: Pass an array of FDs instead of one FD. ViewHostMsg_LaunchNaCl: * Add socket count. * Return an array of FDs instead of one FD. Expose this functionality to the NaCl plugin via a new function, "launch_nacl_process_multi_fd". BUG=50626 TEST=nacl_ui_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54113

Patch Set 1 #

Patch Set 2 : Whitespace fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -63 lines) Patch
M chrome/browser/nacl_host/nacl_process_host.h View 2 chunks +4 lines, -6 lines 1 comment Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 6 chunks +94 lines, -42 lines 0 comments Download
M chrome/common/nacl_messages_internal.h View 1 chunk +2 lines, -3 lines 1 comment Download
M chrome/common/render_messages_internal.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/nacl/nacl_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/nacl/nacl_thread.cc View 1 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/renderer/render_process_impl.cc View 1 2 chunks +35 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mark Seaborn
I've tested this on Linux and 64-bit Windows Vista. Sending to the trybots now too...
10 years, 4 months ago (2010-07-28 22:52:11 UTC) #1
Mark Schneckloth
LGTM http://codereview.chromium.org/2832093/diff/2001/3003 File chrome/common/nacl_messages_internal.h (right): http://codereview.chromium.org/2832093/diff/2001/3003#newcode14 chrome/common/nacl_messages_internal.h:14: std::vector<nacl::FileDescriptor> /* sockets */) I'm not sure how ...
10 years, 4 months ago (2010-07-28 23:09:23 UTC) #2
Mark Seaborn
On 2010/07/28 23:09:23, Mark Schneckloth wrote: > LGTM > > http://codereview.chromium.org/2832093/diff/2001/3003 > File chrome/common/nacl_messages_internal.h (right): ...
10 years, 4 months ago (2010-07-29 10:18:00 UTC) #3
gregoryd
C++ references are not used in render_messages_internal.h that declares the messages, but they are use ...
10 years, 4 months ago (2010-07-29 23:45:50 UTC) #4
gregoryd
10 years, 4 months ago (2010-07-29 23:46:09 UTC) #5
One more comment

http://codereview.chromium.org/2832093/diff/2001/3002
File chrome/browser/nacl_host/nacl_process_host.h (right):

http://codereview.chromium.org/2832093/diff/2001/3002#newcode74
chrome/browser/nacl_host/nacl_process_host.h:74: std::vector<nacl::Handle>
sockets_for_sel_ldr_;
socket_for_loader would be better, Chrome people don't know about sel_ldr

Powered by Google App Engine
This is Rietveld 408576698