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

Issue 8764003: Implement a proxy for Pepper FileIO. (Closed)

Created:
9 years ago by brettw
Modified:
9 years ago
Reviewers:
yzshen1, viettrungluu
CC:
chromium-reviews, piman+watch_chromium.org, ihf+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement a proxy for Pepper FileIO. This splits apart the old in-process implementation into a new object in shared_impl that does most of the general tracking. This alllows that code to be shared by the proxy. BUG=http://crbug.com/101154 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113656

Patch Set 1 #

Total comments: 11

Patch Set 2 : Comments addressed. #

Total comments: 2

Patch Set 3 : More comments #

Patch Set 4 : Fix URLLoader test #

Patch Set 5 : Homestarmy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1274 lines, -529 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M ppapi/api/ppb_file_io.idl View 1 9 chunks +24 lines, -8 lines 0 comments Download
M ppapi/c/ppb_file_io.h View 1 9 chunks +25 lines, -9 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 2 chunks +53 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 1 chunk +2 lines, -1 line 0 comments Download
A ppapi/proxy/ppb_file_io_proxy.h View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_file_io_proxy.cc View 1 2 3 4 1 chunk +442 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/api_id.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + ppapi/shared_impl/file_type_conversion.h View 2 chunks +3 lines, -5 lines 0 comments Download
A + ppapi/shared_impl/file_type_conversion.cc View 2 chunks +1 line, -3 lines 0 comments Download
A ppapi/shared_impl/ppb_file_io_shared.h View 1 2 3 4 1 chunk +157 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppb_file_io_shared.cc View 1 2 3 4 1 chunk +237 lines, -0 lines 0 comments Download
M ppapi/tests/test_file_io.cc View 1 2 2 chunks +33 lines, -4 lines 0 comments Download
M ppapi/tests/test_url_loader.cc View 1 2 3 4 2 chunks +25 lines, -35 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/thunk/thunk.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/file_callbacks.cc View 2 chunks +2 lines, -2 lines 0 comments Download
D webkit/plugins/ppapi/file_type_conversions.h View 1 chunk +0 lines, -25 lines 0 comments Download
D webkit/plugins/ppapi/file_type_conversions.cc View 1 chunk +0 lines, -76 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_io_impl.h View 1 2 3 4 3 chunks +44 lines, -96 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_io_impl.cc View 1 2 3 4 9 chunks +91 lines, -240 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_file_impl.cc View 11 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
brettw
http://codereview.chromium.org/8764003/diff/1/ppapi/ppapi_shared.gypi File ppapi/ppapi_shared.gypi (right): http://codereview.chromium.org/8764003/diff/1/ppapi/ppapi_shared.gypi#newcode46 ppapi/ppapi_shared.gypi:46: 'shared_impl/file_type_conversion.cc', I moved this from webkit/plugins/ppapi
9 years ago (2011-11-30 23:00:52 UTC) #1
viettrungluu
Some initial comments/questions. http://codereview.chromium.org/8764003/diff/1/ppapi/api/ppb_file_io.idl File ppapi/api/ppb_file_io.idl (right): http://codereview.chromium.org/8764003/diff/1/ppapi/api/ppb_file_io.idl#newcode103 ppapi/api/ppb_file_io.idl:103: * FileIO object must be opened, ...
9 years ago (2011-11-30 23:44:42 UTC) #2
brettw
I think I addressed everything. PTAL http://codereview.chromium.org/8764003/diff/1/ppapi/shared_impl/file_io_impl.cc File ppapi/shared_impl/file_io_impl.cc (right): http://codereview.chromium.org/8764003/diff/1/ppapi/shared_impl/file_io_impl.cc#newcode178 ppapi/shared_impl/file_io_impl.cc:178: RunAndRemoveFirstPendingCallback(pp_error); I don't ...
9 years ago (2011-12-01 18:50:15 UTC) #3
yzshen1
http://codereview.chromium.org/8764003/diff/1/ppapi/shared_impl/file_io_impl.cc File ppapi/shared_impl/file_io_impl.cc (right): http://codereview.chromium.org/8764003/diff/1/ppapi/shared_impl/file_io_impl.cc#newcode178 ppapi/shared_impl/file_io_impl.cc:178: RunAndRemoveFirstPendingCallback(pp_error); On 2011/12/01 18:50:15, brettw wrote: > I don't ...
9 years ago (2011-12-01 19:01:51 UTC) #4
viettrungluu
9 years ago (2011-12-01 22:59:43 UTC) #5
LGTM w/nits, I think (though I'm feeling lazy today).

http://codereview.chromium.org/8764003/diff/6001/ppapi/tests/test_file_io.cc
File ppapi/tests/test_file_io.cc (right):

http://codereview.chromium.org/8764003/diff/6001/ppapi/tests/test_file_io.cc#...
ppapi/tests/test_file_io.cc:907: // Can not query while the write is pending.
nit: s/Can not/Cannot/

They mean different things. E.g., "You can *not* show up to work, but then
you'll get fired." versus "You cannot go to work because you're sick.".

http://codereview.chromium.org/8764003/diff/6001/webkit/plugins/ppapi/ppb_fil...
File webkit/plugins/ppapi/ppb_file_io_impl.h (right):

http://codereview.chromium.org/8764003/diff/6001/webkit/plugins/ppapi/ppb_fil...
webkit/plugins/ppapi/ppb_file_io_impl.h:13: //#include "ppapi/c/pp_file_info.h"
Nit: Eh?

Powered by Google App Engine
This is Rietveld 408576698