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

Issue 6543028: Implement the filesystem proxy. This allows the FileRef tests to pass in the... (Closed)

Created:
9 years, 10 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
vtl, viettrungluu
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Implement the filesystem proxy. This allows the FileRef tests (the ones which don't use FileIO which isn't don yet) to pass in the proxy. Hook up the code from the URLLoader that downloads to a file. This allows all URLLoader tests to pass in the proxy. Change code in dispatcher that zeros out the array to take into account padding. It was only zero-filling half of the array since sizeof(enum) * # elts seems to be half as large as the actual array due to padding on 64-bit systems. Make the aborted completion callbacks run asynchronously. This was caught by one of the file ref tests. We really need a system for doing this better, but I don't want to do that in this patch. TEST=ppapi_tests run under proxy Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75566

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -31 lines) Patch
M ppapi/c/dev/pp_file_info_dev.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/c/dev/ppb_file_ref_dev.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/c/dev/ppb_file_system_dev.h View 1 3 chunks +22 lines, -5 lines 0 comments Download
M ppapi/ppapi_shared_proxy.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/interface_id.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/plugin_resource.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages_internal.h View 1 3 chunks +16 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_file_chooser_proxy.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
A ppapi/proxy/ppb_file_system_proxy.h View 1 chunk +61 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_file_system_proxy.cc View 1 1 chunk +204 lines, -0 lines 3 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.cc View 1 3 chunks +28 lines, -11 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_file_system_impl.cc View 1 4 chunks +24 lines, -1 line 2 comments Download

Messages

Total messages: 3 (0 generated)
brettw
9 years, 10 months ago (2011-02-21 18:45:37 UTC) #1
vtl
LGTM, though "invalid" may be clearer (as a type) than "none". http://codereview.chromium.org/6543028/diff/6001/ppapi/c/dev/ppb_file_system_dev.h File ppapi/c/dev/ppb_file_system_dev.h (right): ...
9 years, 10 months ago (2011-02-21 19:06:00 UTC) #2
brettw
9 years, 10 months ago (2011-02-21 19:19:10 UTC) #3
http://codereview.chromium.org/6543028/diff/6001/ppapi/c/dev/ppb_file_system_...
File ppapi/c/dev/ppb_file_system_dev.h (right):

http://codereview.chromium.org/6543028/diff/6001/ppapi/c/dev/ppb_file_system_...
ppapi/c/dev/ppb_file_system_dev.h:30: * TODO(brettw) clarify whether this must
have completed before a file can
I also wonder that. I added this to the TODO.

http://codereview.chromium.org/6543028/diff/8002/ppapi/proxy/ppb_file_system_...
File ppapi/proxy/ppb_file_system_proxy.cc (right):

http://codereview.chromium.org/6543028/diff/8002/ppapi/proxy/ppb_file_system_...
ppapi/proxy/ppb_file_system_proxy.cc:97: return PP_ERROR_BADARGUMENT;
I was setting this elsewhere. In many places I end up with a helper function
that retrieves both the object and the dispatcher, and want to return only one
value if that fails (since this is an internal failure, I wasn't worrying a lot
about passing error values around). So I did this here for consistency.

http://codereview.chromium.org/6543028/diff/8002/webkit/plugins/ppapi/ppb_fil...
File webkit/plugins/ppapi/ppb_file_system_impl.cc (right):

http://codereview.chromium.org/6543028/diff/8002/webkit/plugins/ppapi/ppb_fil...
webkit/plugins/ppapi/ppb_file_system_impl.cc:85: return PP_FILESYSTEMTYPE_NONE;
On 2011/02/21 19:06:00, vtl wrote:
> Maybe PP_FILESYSTEMTYPE_INVALID would be more appropriate?
> 
> (I'm tempted to say that it should be
> int32_t GetType(PP_Resource, PP_FileSystemType_Dev* type);
> so that errors can be reported, but that's a pain to use.)

Done.

Powered by Google App Engine
This is Rietveld 408576698