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

Issue 1125043002: NaCl: Stop sending resource FDs with NaClProcessMsg_Start (Closed)

Created:
5 years, 7 months ago by Yusuke Sato
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NaCl: Stop sending resource FDs with NaClProcessMsg_Start Instead, define NaClProcessMsg_AddPrefetchedResource and send them with multiple NaClProcessMsg_AddPrefetchedResource IPCs. That way, we can send an arbitrary number of FDs to a plugin process ignoring the IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage limit. BUG=nativeclient:3802 BUG=348232 TEST=browser_tests (*PackagedAppTest.SuccessfulLoad) TEST=manually tested SFI ARC, non-SFI ARC, and PNaCl demo apps Committed: https://crrev.com/68b681edd264a42275353fe4abeb563e0f1cbce9 Cr-Commit-Position: refs/heads/master@{#329030}

Patch Set 1 #

Patch Set 2 : review #

Patch Set 3 : git rebase master #

Total comments: 16

Patch Set 4 : address comments #

Total comments: 6

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -41 lines) Patch
M components/nacl/browser/nacl_host_message_filter.cc View 1 2 3 4 2 chunks +4 lines, -13 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/nacl/common/nacl_messages.h View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M components/nacl/common/nacl_types.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/nacl/loader/nacl_listener.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 chunks +21 lines, -13 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 1 2 3 4 3 chunks +18 lines, -10 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Yusuke Sato
Please take a look. I won't submit this until https://codereview.chromium.org/1127913002/ is submitted, but I'd like ...
5 years, 7 months ago (2015-05-06 18:01:22 UTC) #3
Yusuke Sato
https://codereview.chromium.org/1127913002/ has been submitted. Rebased this on top of the IPC change and ran try ...
5 years, 7 months ago (2015-05-06 19:52:28 UTC) #4
Mark Seaborn
https://codereview.chromium.org/1125043002/diff/60001/components/nacl/browser/nacl_host_message_filter.cc File components/nacl/browser/nacl_host_message_filter.cc (left): https://codereview.chromium.org/1125043002/diff/60001/components/nacl/browser/nacl_host_message_filter.cc#oldcode234 components/nacl/browser/nacl_host_message_filter.cc:234: if (prefetched_resource_files.size() >= kMaxPreOpenResourceFiles) I think it would be ...
5 years, 7 months ago (2015-05-08 00:35:36 UTC) #5
Yusuke Sato
Thanks for the review. Please take another look. https://codereview.chromium.org/1125043002/diff/60001/components/nacl/browser/nacl_host_message_filter.cc File components/nacl/browser/nacl_host_message_filter.cc (left): https://codereview.chromium.org/1125043002/diff/60001/components/nacl/browser/nacl_host_message_filter.cc#oldcode234 components/nacl/browser/nacl_host_message_filter.cc:234: if ...
5 years, 7 months ago (2015-05-08 15:12:35 UTC) #6
Mark Seaborn
LGTM. Note to IPC message reviewers: I did review the change to nacl_messages.h for security. ...
5 years, 7 months ago (2015-05-08 17:18:24 UTC) #7
Yusuke Sato
https://codereview.chromium.org/1125043002/diff/60001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/1125043002/diff/60001/components/nacl/browser/nacl_process_host.cc#newcode895 components/nacl/browser/nacl_process_host.cc:895: if (prefetched_resource_files_to_send.size() >= kMaxDescriptorsPerMessage || On 2015/05/08 17:18:24, Mark ...
5 years, 7 months ago (2015-05-08 18:41:17 UTC) #8
Yusuke Sato
Julien, could you take a look at components/nacl/common/nacl_messages.h?
5 years, 7 months ago (2015-05-08 18:41:56 UTC) #10
jln (very slow on Chromium)
lgtm based on a quick read and Mark's review.
5 years, 7 months ago (2015-05-08 20:53:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125043002/100001
5 years, 7 months ago (2015-05-08 21:25:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
5 years, 7 months ago (2015-05-09 01:47:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125043002/100001
5 years, 7 months ago (2015-05-09 02:09:07 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 7 months ago (2015-05-09 02:49:06 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-09 02:50:51 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/68b681edd264a42275353fe4abeb563e0f1cbce9
Cr-Commit-Position: refs/heads/master@{#329030}

Powered by Google App Engine
This is Rietveld 408576698