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

Issue 294633003: Pepper: Move StreamAsFile out of trusted plugin. (Closed)

Created:
6 years, 7 months ago by teravest
Modified:
6 years, 7 months ago
Reviewers:
bbudge
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Visibility:
Public.

Description

Pepper: Move StreamAsFile out of trusted plugin. This removes a significant amount of code from the trusted plugin and simplifies the callbacks that are used in PluginReverseInterface. I was confused at first by the existing use of url_file_info_map_; it looks like it was intended to serve as a cache for retrieved files, but I think the files would be reopened every time, even if the file was already open. For simplicity, I didn't try to add any caching behavior in this change. Note that this changes progress events to be rate limited at 10ms per-file, not 10ms per-plugin. It's a bit simpler to write this way, but I can change that limit to be per-plugin if that makes more sense. BUG=370556 R=bbudge@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272550

Patch Set 1 : #

Patch Set 2 : comment fix #

Patch Set 3 : rebased #

Patch Set 4 : Windows fix: seek to beginning of file #

Patch Set 5 : rebased #

Total comments: 2

Patch Set 6 : Rebased #

Patch Set 7 : Remove "default" case statement. #

Total comments: 4

Patch Set 8 : rebased #

Patch Set 9 : fixes for bbudge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -298 lines) Patch
M components/nacl/renderer/file_downloader.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +109 lines, -31 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 6 7 4 chunks +17 lines, -13 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 7 5 chunks +30 lines, -11 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/file_downloader.h View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/file_downloader.cc View 1 2 3 4 2 chunks +0 lines, -51 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -32 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -119 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 1 chunk +9 lines, -16 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 6 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
teravest
6 years, 7 months ago (2014-05-19 16:59:04 UTC) #1
teravest
Mind taking another look, Bill? This looks ok on Windows now, here's a successful run: ...
6 years, 7 months ago (2014-05-21 20:29:08 UTC) #2
bbudge
I'm a little confused about NaClFileInfo. I thought that was for the fast path loading ...
6 years, 7 months ago (2014-05-22 17:14:15 UTC) #3
teravest
On Thu, May 22, 2014 at 11:14 AM, <bbudge@chromium.org> wrote: > I'm a little confused ...
6 years, 7 months ago (2014-05-22 17:29:54 UTC) #4
bbudge
Couple of comments. Otherwise LGTM https://codereview.chromium.org/294633003/diff/170001/components/nacl/renderer/ppb_nacl_private_impl.cc File components/nacl/renderer/ppb_nacl_private_impl.cc (right): https://codereview.chromium.org/294633003/diff/170001/components/nacl/renderer/ppb_nacl_private_impl.cc#newcode292 components/nacl/renderer/ppb_nacl_private_impl.cc:292: return PP_ERROR_FAILED; Comment to ...
6 years, 7 months ago (2014-05-22 20:31:22 UTC) #5
teravest
On Thu, May 22, 2014 at 2:31 PM, <bbudge@chromium.org> wrote: > Couple of comments. Otherwise ...
6 years, 7 months ago (2014-05-23 15:16:58 UTC) #6
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 7 months ago (2014-05-23 15:48:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/294633003/210001
6 years, 7 months ago (2014-05-23 15:49:22 UTC) #8
teravest
6 years, 7 months ago (2014-05-23 16:55:19 UTC) #9
Message was sent while issue was closed.
Committed patchset #9 manually as r272550 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698