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

Issue 22646005: Do PPB_FileIO Query and Read in the plugin process. (Closed)

Created:
7 years, 4 months ago by bbudge
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Do PPB_FileIO Query and Read in the plugin process. Use the plugin-side file descriptor for asynchronous callbacks too. TBR=dmichael@chromium.org CL only removes messages that had a LGTM in a prior CL. https://codereview.chromium.org/18063005/ BUG=194304 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216838

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 21

Patch Set 3 : QueryOp and ReadOp, and using PostTaskAndReplyWithResult. #

Patch Set 4 : Defer buffer allocation until we read. #

Total comments: 14

Patch Set 5 : Rebase and address David's comments. #

Patch Set 6 : Rebase to final patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -201 lines) Patch
M content/renderer/pepper/pepper_file_io_host.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_file_io_host.cc View 1 2 3 4 5 chunks +0 lines, -93 lines 0 comments Download
M ppapi/proxy/file_io_resource.h View 1 2 3 4 2 chunks +49 lines, -8 lines 0 comments Download
M ppapi/proxy/file_io_resource.cc View 1 2 3 4 7 chunks +118 lines, -90 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
bbudge
I thought I'd try using the TrackedCallback::CompletionTask CL and was able to get Read and ...
7 years, 4 months ago (2013-08-09 05:13:22 UTC) #1
bbudge
The other change did land. I'll put this and the TrackedCallback CLs together.
7 years, 4 months ago (2013-08-09 15:20:12 UTC) #2
dmichael (off chromium)
Thanks for doing this... I'm finding the result passing stuff a bit confusing, so I ...
7 years, 4 months ago (2013-08-09 17:37:42 UTC) #3
bbudge
https://codereview.chromium.org/22646005/diff/9001/ppapi/proxy/file_io_resource.cc File ppapi/proxy/file_io_resource.cc (right): https://codereview.chromium.org/22646005/diff/9001/ppapi/proxy/file_io_resource.cc#newcode123 ppapi/proxy/file_io_resource.cc:123: return OnQueryComplete(info, PP_OK); On 2013/08/09 17:37:42, dmichael wrote: > ...
7 years, 4 months ago (2013-08-09 21:43:23 UTC) #4
bbudge
https://codereview.chromium.org/22646005/diff/9001/ppapi/proxy/file_io_resource.cc File ppapi/proxy/file_io_resource.cc (right): https://codereview.chromium.org/22646005/diff/9001/ppapi/proxy/file_io_resource.cc#newcode298 ppapi/proxy/file_io_resource.cc:298: scoped_refptr<ReadData> read_data(new ReadData(bytes_to_read)); Turns out I was needlessly worried ...
7 years, 4 months ago (2013-08-09 21:58:14 UTC) #5
dmichael (off chromium)
Yay, this looks a lot cleaner, thank you! lgtm https://chromiumcodereview.appspot.com/22646005/diff/18001/ppapi/proxy/file_io_resource.cc File ppapi/proxy/file_io_resource.cc (right): https://chromiumcodereview.appspot.com/22646005/diff/18001/ppapi/proxy/file_io_resource.cc#newcode73 ppapi/proxy/file_io_resource.cc:73: ...
7 years, 4 months ago (2013-08-09 22:20:56 UTC) #6
bbudge
Thanks for all of your reviews David. This turned out much better for them. https://codereview.chromium.org/22646005/diff/18001/ppapi/proxy/file_io_resource.cc ...
7 years, 4 months ago (2013-08-09 23:05:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22646005/27001
7 years, 4 months ago (2013-08-10 00:28:52 UTC) #8
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-10 00:40:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22646005/27001
7 years, 4 months ago (2013-08-10 00:55:35 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-10 01:05:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22646005/27001
7 years, 4 months ago (2013-08-10 01:18:29 UTC) #12
bbudge
7 years, 4 months ago (2013-08-10 13:39:16 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 manually as r216838 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698