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

Issue 249183004: Implement open_resource in non-SFI mode. (Closed)

Created:
6 years, 8 months ago by hidehiko
Modified:
6 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, yzshen+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org, hamaji, mazda, Junichi Uekawa, teravest
Visibility:
Public.

Description

Implement open_resource in non-SFI mode. This CL implements open_resource() in non-SFI mode. 1) Introduced a new sync message PpapiHostMsg_OpenResource and its handlers. 2) Implement async version of OpenManifestEntry. As IPC's handler is called on renderer's main thread, otherwise it causes deadlock. TEST=Run trybots. BUG=358431 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267962

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 36

Patch Set 4 : Rebase #

Patch Set 5 : #

Patch Set 6 : Rebase #

Patch Set 7 : #

Total comments: 36

Patch Set 8 : Rebase #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Patch Set 11 : Rebase #

Total comments: 6

Patch Set 12 : #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -118 lines) Patch
A chrome/test/data/nacl/manifest_file/irt_manifest_file.nmf View 1 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/test/data/nacl/nacl_test_data.gyp View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -25 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -1 line 0 comments Download
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 19 chunks +39 lines, -30 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/irt_interfaces.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/irt_interfaces.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + components/nacl/loader/nonsfi/irt_resource_open.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M components/nacl/renderer/manifest_service_channel.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +22 lines, -1 line 0 comments Download
M components/nacl/renderer/manifest_service_channel.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +38 lines, -2 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +34 lines, -4 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -2 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +24 lines, -6 lines 0 comments Download
M ppapi/nacl_irt/DEPS View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A ppapi/nacl_irt/irt_manifest.h View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M ppapi/nacl_irt/manifest_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/nacl_irt/manifest_service.cc View 1 2 3 4 5 6 7 8 3 chunks +36 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/nacl_entry_points.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +134 lines, -30 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -4 lines 0 comments Download
M ppapi/ppapi_nacl_test_common.gypi View 1 2 3 4 4 chunks +14 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
Junichi Uekawa
https://codereview.chromium.org/249183004/diff/1/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/249183004/diff/1/components/nacl.gyp#newcode240 components/nacl.gyp:240: 'nacl/loader/nonsfi/irt_resource_open.cc', I think you forgot to inlcude irt_resource_open.cc and ...
6 years, 8 months ago (2014-04-23 22:19:30 UTC) #1
hidehiko
Hi Mark, Dave, Could you take a look? Thanks in advance, - hidehiko https://codereview.chromium.org/249183004/diff/1/components/nacl.gyp File ...
6 years, 8 months ago (2014-04-24 16:07:31 UTC) #2
teravest
https://codereview.chromium.org/249183004/diff/80001/components/nacl/renderer/manifest_service_channel.cc File components/nacl/renderer/manifest_service_channel.cc (right): https://codereview.chromium.org/249183004/diff/80001/components/nacl/renderer/manifest_service_channel.cc#newcode84 components/nacl/renderer/manifest_service_channel.cc:84: IPC::GetFileHandleForProcess( You should use BrokerGetFileHandleForProcess here instead of IPC::GetFileHandleForProcess. ...
6 years, 8 months ago (2014-04-24 20:00:52 UTC) #3
hidehiko
Thank you for review, Justin. PTAL. Julien, could you also take a look for *_message.h, ...
6 years, 8 months ago (2014-04-25 05:53:54 UTC) #4
teravest
Thanks for explaining why OpenManifestEntry has to be asynchronous in this case. I wish that ...
6 years, 8 months ago (2014-04-25 20:44:01 UTC) #5
dmichael (off chromium)
https://codereview.chromium.org/249183004/diff/100001/components/nacl/renderer/manifest_service_channel.cc File components/nacl/renderer/manifest_service_channel.cc (right): https://codereview.chromium.org/249183004/diff/100001/components/nacl/renderer/manifest_service_channel.cc#newcode79 components/nacl/renderer/manifest_service_channel.cc:79: IPC::Message* reply, int32_t pp_error, style nit: Parameters should be ...
6 years, 8 months ago (2014-04-25 21:06:58 UTC) #6
Mark Seaborn
https://codereview.chromium.org/249183004/diff/100001/chrome/test/data/nacl/nacl_test_data.gyp File chrome/test/data/nacl/nacl_test_data.gyp (right): https://codereview.chromium.org/249183004/diff/100001/chrome/test/data/nacl/nacl_test_data.gyp#newcode1116 chrome/test/data/nacl/nacl_test_data.gyp:1116: # create_nmf.py doesn't support nonsfi. How hard would it ...
6 years, 8 months ago (2014-04-26 00:18:58 UTC) #7
hidehiko
Justin, I agree with you that we can do better in theory. I'm happy for ...
6 years, 7 months ago (2014-04-28 08:44:26 UTC) #8
teravest
lgtm
6 years, 7 months ago (2014-04-28 18:47:32 UTC) #9
dmichael (off chromium)
lgtm https://codereview.chromium.org/249183004/diff/100001/ppapi/nacl_irt/irt_manifest.h File ppapi/nacl_irt/irt_manifest.h (right): https://codereview.chromium.org/249183004/diff/100001/ppapi/nacl_irt/irt_manifest.h#newcode12 ppapi/nacl_irt/irt_manifest.h:12: // The implementation of irt_open_resource() based on ManifestService. ...
6 years, 7 months ago (2014-04-29 17:24:58 UTC) #10
hidehiko
Thank you for review, Justin, Dave. Mark, friendly ping? Julien, as Dave and Justin gave ...
6 years, 7 months ago (2014-04-30 02:26:42 UTC) #11
dmichael (off chromium)
> > > Also... what's the long-term goal for the meaning of >> > "IrtOpenResource"? ...
6 years, 7 months ago (2014-04-30 02:30:58 UTC) #12
Mark Seaborn
https://codereview.chromium.org/249183004/diff/100001/chrome/test/data/nacl/nacl_test_data.gyp File chrome/test/data/nacl/nacl_test_data.gyp (right): https://codereview.chromium.org/249183004/diff/100001/chrome/test/data/nacl/nacl_test_data.gyp#newcode1116 chrome/test/data/nacl/nacl_test_data.gyp:1116: # create_nmf.py doesn't support nonsfi. On 2014/04/28 08:44:27, hidehiko ...
6 years, 7 months ago (2014-04-30 21:20:57 UTC) #13
hidehiko
Thank you for review. PTAL, Mark, Julien? https://codereview.chromium.org/249183004/diff/100001/chrome/test/data/nacl/nacl_test_data.gyp File chrome/test/data/nacl/nacl_test_data.gyp (right): https://codereview.chromium.org/249183004/diff/100001/chrome/test/data/nacl/nacl_test_data.gyp#newcode1116 chrome/test/data/nacl/nacl_test_data.gyp:1116: # create_nmf.py ...
6 years, 7 months ago (2014-05-01 05:20:30 UTC) #14
Mark Seaborn
https://codereview.chromium.org/249183004/diff/220001/components/nacl/renderer/manifest_service_channel.cc File components/nacl/renderer/manifest_service_channel.cc (right): https://codereview.chromium.org/249183004/diff/220001/components/nacl/renderer/manifest_service_channel.cc#newcode79 components/nacl/renderer/manifest_service_channel.cc:79: NOTREACHED(); On 2014/05/01 05:20:31, hidehiko wrote: > On 2014/04/30 ...
6 years, 7 months ago (2014-05-01 06:32:34 UTC) #15
hidehiko
Could you take another look? https://codereview.chromium.org/249183004/diff/220001/components/nacl/renderer/manifest_service_channel.cc File components/nacl/renderer/manifest_service_channel.cc (right): https://codereview.chromium.org/249183004/diff/220001/components/nacl/renderer/manifest_service_channel.cc#newcode79 components/nacl/renderer/manifest_service_channel.cc:79: NOTREACHED(); On 2014/05/01 06:32:35, ...
6 years, 7 months ago (2014-05-01 13:05:39 UTC) #16
Mark Seaborn
LGTM, thanks. I found the changes to service_runtime.cc hard to follow, but I think Justin ...
6 years, 7 months ago (2014-05-01 23:28:32 UTC) #17
hidehiko
Thank you for review, Mark. Julien, friendly ping? https://codereview.chromium.org/249183004/diff/220001/components/nacl/renderer/manifest_service_channel.cc File components/nacl/renderer/manifest_service_channel.cc (right): https://codereview.chromium.org/249183004/diff/220001/components/nacl/renderer/manifest_service_channel.cc#newcode79 components/nacl/renderer/manifest_service_channel.cc:79: NOTREACHED(); ...
6 years, 7 months ago (2014-05-02 01:32:26 UTC) #18
jln (very slow on Chromium)
lgtm, sorry for the delay
6 years, 7 months ago (2014-05-02 18:50:50 UTC) #19
hidehiko
On 2014/05/02 18:50:50, jln wrote: > lgtm, sorry for the delay Thank you for review, ...
6 years, 7 months ago (2014-05-02 18:54:45 UTC) #20
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 7 months ago (2014-05-02 18:55:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/249183004/360001
6 years, 7 months ago (2014-05-02 18:55:30 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 18:55:52 UTC) #23
commit-bot: I haz the power
Failed to apply patch for ppapi/c/private/ppb_nacl_private.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-02 18:55:52 UTC) #24
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 7 months ago (2014-05-02 19:24:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/249183004/380001
6 years, 7 months ago (2014-05-02 19:24:15 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 19:51:44 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 19:51:45 UTC) #28
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 7 months ago (2014-05-02 19:56:53 UTC) #29
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 7 months ago (2014-05-02 19:57:17 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/249183004/380001
6 years, 7 months ago (2014-05-02 19:58:19 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 20:26:27 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 20:26:28 UTC) #33
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 7 months ago (2014-05-02 20:39:09 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/249183004/380001
6 years, 7 months ago (2014-05-02 20:39:36 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 21:01:17 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 21:01:17 UTC) #37
jln (very slow on Chromium)
The CQ bit was checked by jln@chromium.org
6 years, 7 months ago (2014-05-02 22:18:42 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/249183004/380001
6 years, 7 months ago (2014-05-02 22:19:23 UTC) #39
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 23:24:56 UTC) #40
Message was sent while issue was closed.
Change committed as 267962

Powered by Google App Engine
This is Rietveld 408576698