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

Issue 1512733003: PNaCl: Use Chrome IPC to talk to the linker process, instead of SRPC (Closed)

Created:
5 years ago by Mark Seaborn
Modified:
4 years, 11 months ago
CC:
chromium-reviews, Derek Schuff
Base URL:
http://git.chromium.org/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PNaCl: Use Chrome IPC to talk to the linker process, instead of SRPC This is the second-to-last remaining use of SRPC. * Change pnacl_translate_thread.cc to send its request using Chrome IPC instead of SRPC. Similarly, change irt_pnacl_translator_link.cc to receive its request this way. * Add plumbing so that pnacl_translate_thread.cc can acquire a Chrome IPC channel object. Change LaunchSelLdr() (in ppb_nacl_private.h) to return this channel, and plumb it through service_runtime.h too. * Extend nacl_message_scanner.cc to handle a couple of things our new IPC message needs: * File handles inside of std::vector<>s. * File handles inside of sync messages. (Previously, only sync replies were handled.) * Change a BUILD.gn to account for #includes of content/public/common/sandbox_init.h and ppapi/proxy/{serialized_handle.h,ppapi_messages.h}. BUG=302078 TEST=e.g. NaClBrowserTestPnacl.PPAPICore (tests PNaCl translation) Committed: https://crrev.com/3bedcdc7ad86115836141f91ffd7fa331d07e2a1 Cr-Commit-Position: refs/heads/master@{#367369}

Patch Set 1 #

Patch Set 2 : Working version #

Patch Set 3 : Attempt to fix on Mac #

Patch Set 4 : Attempt to fix Mac #2 #

Patch Set 5 : Add debugging #

Patch Set 6 : Fix message rewriting on Mac/Windows #

Patch Set 7 : Cleanup #

Patch Set 8 : Rebase + cleanup #

Total comments: 27

Patch Set 9 : Review #

Total comments: 4

Patch Set 10 : Review #

Total comments: 1

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -83 lines) Patch
M components/nacl/renderer/plugin/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_translate_thread.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -0 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_translate_thread.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +72 lines, -43 lines 0 comments Download
M components/nacl/renderer/plugin/service_runtime.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -0 lines 0 comments Download
M components/nacl/renderer/plugin/service_runtime.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M components/nacl/renderer/plugin/temporary_file.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/nacl/renderer/plugin/temporary_file.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -2 lines 0 comments Download
M ppapi/nacl_irt/irt_pnacl_translator_link.cc View 1 2 3 4 5 6 7 8 9 1 chunk +56 lines, -35 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +36 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512733003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512733003/120001
5 years ago (2015-12-14 00:30:33 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/128453)
5 years ago (2015-12-14 00:37:38 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512733003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512733003/140001
5 years ago (2015-12-15 01:36:46 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) ...
5 years ago (2015-12-15 04:20:35 UTC) #10
Mark Seaborn
5 years ago (2015-12-15 15:51:45 UTC) #13
bbudge
A few comments. I am OOO this afternoon. https://codereview.chromium.org/1512733003/diff/140001/components/nacl/renderer/plugin/temporary_file.cc File components/nacl/renderer/plugin/temporary_file.cc (right): https://codereview.chromium.org/1512733003/diff/140001/components/nacl/renderer/plugin/temporary_file.cc#newcode67 components/nacl/renderer/plugin/temporary_file.cc:67: PP_FileHandle ...
5 years ago (2015-12-16 20:30:06 UTC) #14
Mark Seaborn
Thanks for reviewing! https://codereview.chromium.org/1512733003/diff/140001/components/nacl/renderer/plugin/temporary_file.cc File components/nacl/renderer/plugin/temporary_file.cc (right): https://codereview.chromium.org/1512733003/diff/140001/components/nacl/renderer/plugin/temporary_file.cc#newcode67 components/nacl/renderer/plugin/temporary_file.cc:67: PP_FileHandle TempFile::GetFileHandle() { On 2015/12/16 20:30:06, ...
5 years ago (2015-12-17 06:09:57 UTC) #15
bbudge
https://codereview.chromium.org/1512733003/diff/140001/components/nacl/renderer/plugin/temporary_file.cc File components/nacl/renderer/plugin/temporary_file.cc (right): https://codereview.chromium.org/1512733003/diff/140001/components/nacl/renderer/plugin/temporary_file.cc#newcode67 components/nacl/renderer/plugin/temporary_file.cc:67: PP_FileHandle TempFile::GetFileHandle() { On 2015/12/17 06:09:56, Mark Seaborn wrote: ...
5 years ago (2015-12-17 19:10:24 UTC) #16
bbudge
A few more comments, otherwise this looks good. https://codereview.chromium.org/1512733003/diff/160001/components/nacl/renderer/plugin/pnacl_translate_thread.cc File components/nacl/renderer/plugin/pnacl_translate_thread.cc (right): https://codereview.chromium.org/1512733003/diff/160001/components/nacl/renderer/plugin/pnacl_translate_thread.cc#newcode132 components/nacl/renderer/plugin/pnacl_translate_thread.cc:132: // ...
5 years ago (2015-12-17 21:17:11 UTC) #17
Mark Seaborn
https://codereview.chromium.org/1512733003/diff/140001/ppapi/proxy/nacl_message_scanner.cc File ppapi/proxy/nacl_message_scanner.cc (right): https://codereview.chromium.org/1512733003/diff/140001/ppapi/proxy/nacl_message_scanner.cc#newcode214 ppapi/proxy/nacl_message_scanner.cc:214: bool ScanSyncReply(ScanningResults* results) { On 2015/12/17 19:10:21, bbudge wrote: ...
5 years ago (2015-12-21 22:58:50 UTC) #18
bbudge
LGTM Thanks for working on this project! https://codereview.chromium.org/1512733003/diff/140001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/1512733003/diff/140001/ppapi/proxy/ppapi_messages.h#newcode884 ppapi/proxy/ppapi_messages.h:884: IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive) On ...
5 years ago (2015-12-21 23:28:51 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512733003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512733003/180001
5 years ago (2015-12-22 04:49:56 UTC) #22
Mark Seaborn
+wfh for IPC message security review of ppapi/proxy/ppapi_messages.h.
5 years ago (2015-12-22 04:50:32 UTC) #23
Will Harris
I feel like I need to stare at this code a bit more to understand ...
5 years ago (2015-12-22 05:12:08 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-22 05:48:43 UTC) #26
Mark Seaborn
On 21 December 2015 at 21:12, <wfh@chromium.org> wrote: > I feel like I need to ...
5 years ago (2015-12-22 22:58:10 UTC) #27
Will Harris
Thanks for the explanation. This does indeed look safe from a conceptual perspective, since it ...
4 years, 12 months ago (2015-12-28 22:30:54 UTC) #28
Mark Seaborn
On 2015/12/28 22:30:54, Will Harris wrote: > Thanks for the explanation. > > This does ...
4 years, 12 months ago (2015-12-29 01:27:44 UTC) #30
Tom Sepez
nacl_message_scanner.cc LGTM
4 years, 11 months ago (2016-01-04 19:01:35 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512733003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512733003/180001
4 years, 11 months ago (2016-01-04 19:14:54 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/97537) chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-04 19:19:46 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512733003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512733003/200001
4 years, 11 months ago (2016-01-04 20:29:31 UTC) #38
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 11 months ago (2016-01-04 21:14:34 UTC) #40
commit-bot: I haz the power
4 years, 11 months ago (2016-01-04 21:15:37 UTC) #42
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3bedcdc7ad86115836141f91ffd7fa331d07e2a1
Cr-Commit-Position: refs/heads/master@{#367369}

Powered by Google App Engine
This is Rietveld 408576698