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

Issue 7618039: PPB_URLRequestInfo::AppendFileToBody using sync ipc (Closed)

Created:
9 years, 4 months ago by kinuko
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, cbentzel+watch_chromium.org, brettw
Visibility:
Public.

Description

AppendFileToBody by blocking ipc Another version of change to fix PPB_URLRequestInfo::AppendFileToBody using synchronous IPC. BUG=90878 TEST=PPAPITest.TestURLLoader Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97140

Patch Set 1 : '' #

Total comments: 14

Patch Set 2 : fixes #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -6 lines) Patch
M content/browser/file_system/file_system_dispatcher_host.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/file_system/file_system_dispatcher_host.cc View 4 chunks +33 lines, -0 lines 0 comments Download
M content/common/file_system_messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M net/base/upload_data_stream.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/tests/test_url_loader.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/tests/test_url_loader.cc View 1 2 3 4 chunks +120 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_file_system_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_url_request_info_impl.cc View 1 3 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
michaeln
I definitely prefer the focused fix to the problem in this change as compared to ...
9 years, 4 months ago (2011-08-15 18:12:11 UTC) #1
kinuko
(+darin, ericu, brettw) This is the other patch with alternative approach using sync IPC for ...
9 years, 4 months ago (2011-08-16 04:00:53 UTC) #2
darin (slow to review)
This is an alternative to using WebHTTPBody::appendURLRange? Can you say more about why you were ...
9 years, 4 months ago (2011-08-16 04:09:35 UTC) #3
kinuko
On 2011/08/16 04:09:35, darin wrote: > This is an alternative to using WebHTTPBody::appendURLRange? Can you ...
9 years, 4 months ago (2011-08-16 05:05:14 UTC) #4
darin (slow to review)
On Mon, Aug 15, 2011 at 10:05 PM, <kinuko@chromium.org> wrote: > On 2011/08/16 04:09:35, darin ...
9 years, 4 months ago (2011-08-16 05:25:36 UTC) #5
kinuko
On 2011/08/16 05:25:36, darin wrote: > On Mon, Aug 15, 2011 at 10:05 PM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=kinuko@chromium.org> ...
9 years, 4 months ago (2011-08-16 11:43:05 UTC) #6
darin (slow to review)
LGTM http://codereview.chromium.org/7618039/diff/2001/net/base/upload_data_stream.cc File net/base/upload_data_stream.cc (right): http://codereview.chromium.org/7618039/diff/2001/net/base/upload_data_stream.cc#newcode113 net/base/upload_data_stream.cc:113: base::ThreadRestrictions::ScopedAllowIO allow_io; Yeah, I'd expect that this is ...
9 years, 4 months ago (2011-08-16 17:28:36 UTC) #7
michaeln
lgtm2 http://codereview.chromium.org/7618039/diff/2001/ppapi/tests/test_url_loader.cc File ppapi/tests/test_url_loader.cc (right): http://codereview.chromium.org/7618039/diff/2001/ppapi/tests/test_url_loader.cc#newcode87 ppapi/tests/test_url_loader.cc:87: int32_t WriteEntireBuffer(PP_Instance instance, should this be static or ...
9 years, 4 months ago (2011-08-17 00:16:24 UTC) #8
ericu
LGTM http://codereview.chromium.org/7618039/diff/2001/content/browser/file_system/file_system_dispatcher_host.h File content/browser/file_system/file_system_dispatcher_host.h (right): http://codereview.chromium.org/7618039/diff/2001/content/browser/file_system/file_system_dispatcher_host.h#newcode50 content/browser/file_system/file_system_dispatcher_host.h:50: BrowserThread::ID* thread); How about an OVERRIDE tag here? ...
9 years, 4 months ago (2011-08-17 01:14:31 UTC) #9
kinuko
9 years, 4 months ago (2011-08-17 07:55:28 UTC) #10
Thanks, addressed all the comments.  Will be submitting and then merging.

http://codereview.chromium.org/7618039/diff/2001/content/browser/file_system/...
File content/browser/file_system/file_system_dispatcher_host.h (right):

http://codereview.chromium.org/7618039/diff/2001/content/browser/file_system/...
content/browser/file_system/file_system_dispatcher_host.h:50: BrowserThread::ID*
thread);
On 2011/08/17 01:14:31, ericu wrote:
> How about an OVERRIDE tag here?

Done.

http://codereview.chromium.org/7618039/diff/2001/ppapi/tests/test_url_loader.cc
File ppapi/tests/test_url_loader.cc (right):

http://codereview.chromium.org/7618039/diff/2001/ppapi/tests/test_url_loader....
ppapi/tests/test_url_loader.cc:87: int32_t WriteEntireBuffer(PP_Instance
instance,
On 2011/08/17 00:16:24, michaeln wrote:
> should this be static or in an anon namespace or maybe another private method?

Put this in an anon namespace and placed at top over other TestURLLoader
methods.

http://codereview.chromium.org/7618039/diff/2001/ppapi/tests/test_url_loader....
ppapi/tests/test_url_loader.cc:183: pp::FileSystem file_system(instance_,
PP_FILESYSTEMTYPE_LOCALTEMPORARY);
On 2011/08/17 01:14:31, ericu wrote:
> On 2011/08/16 17:28:36, darin wrote:
> > it looks like TestBasicFilePOST and TestBasicFileRangePOST share a ton of
> code. 
> > there should probably be a helper function for the shared code.
> 
> +1

Done.

http://codereview.chromium.org/7618039/diff/2001/webkit/plugins/ppapi/mock_pl...
File webkit/plugins/ppapi/mock_plugin_delegate.cc (right):

http://codereview.chromium.org/7618039/diff/2001/webkit/plugins/ppapi/mock_pl...
webkit/plugins/ppapi/mock_plugin_delegate.cc:193: FilePath* platform_path) {
On 2011/08/17 01:14:31, ericu wrote:
> Perhaps this should clear platform_path, as the real implementation does on
> error?

Done.

http://codereview.chromium.org/7618039/diff/2001/webkit/plugins/ppapi/ppb_url...
File webkit/plugins/ppapi/ppb_url_request_info_impl.cc (right):

http://codereview.chromium.org/7618039/diff/2001/webkit/plugins/ppapi/ppb_url...
webkit/plugins/ppapi/ppb_url_request_info_impl.cc:233:
instance()->delegate()->SyncGetFileSystemPlatformPath(
On 2011/08/16 17:28:36, darin wrote:
> can you insert a TODO(kinuko) here about switching to the better solution to
> avoid this IPC in the future?

Done.

Powered by Google App Engine
This is Rietveld 408576698