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

Issue 10834289: Split net::UploadData into two: for IPC and for upload handling (Closed)

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

Description

Split net::UploadData into two: for resource request IPC and for upload handling Introducing webkit_glue::ResourceRequestBody as a content-level abstraction corresponding to WebHTTPBody and as an alternative of net::UploadData in ResourceRequest. This interface can contain content-level objects like Blob (or FileSystem URL in later patches) while net::UploadData should NOT. This patch also removes Blob support in net::UploadData. BUG=110119 TEST=existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152528 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152553

Patch Set 1 : #

Total comments: 4

Patch Set 2 : updated #

Patch Set 3 : fixes #

Total comments: 22

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : rebase!!! #

Patch Set 7 : rebase + moved ResolveBlobRef from webkit_blob to webkit_glue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+747 lines, -437 lines) Patch
M chrome/browser/policy/device_management_service_browsertest.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 5 chunks +14 lines, -16 lines 0 comments Download
M content/common/resource_dispatcher.cc View 1 2 3 3 chunks +6 lines, -46 lines 0 comments Download
M content/common/resource_messages.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/public/common/common_param_traits.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits.cc View 1 2 3 4 5 6 chunks +113 lines, -18 lines 0 comments Download
M net/base/upload_data.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M net/base/upload_data.cc View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M net/base/upload_data_unittest.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M net/base/upload_element.h View 1 2 3 4 5 6 7 chunks +17 lines, -16 lines 0 comments Download
M net/base/upload_element.cc View 1 2 3 4 5 4 chunks +6 lines, -9 lines 0 comments Download
M webkit/blob/blob_storage_controller.h View 1 2 3 4 5 6 2 chunks +0 lines, -7 lines 0 comments Download
M webkit/blob/blob_storage_controller.cc View 1 2 3 4 5 6 2 chunks +0 lines, -68 lines 0 comments Download
M webkit/blob/blob_storage_controller_unittest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -160 lines 0 comments Download
M webkit/glue/resource_loader_bridge.h View 1 2 chunks +4 lines, -26 lines 0 comments Download
A webkit/glue/resource_request_body.h View 1 2 3 4 5 6 1 chunk +192 lines, -0 lines 0 comments Download
A webkit/glue/resource_request_body.cc View 1 2 3 4 5 6 1 chunk +127 lines, -0 lines 0 comments Download
A webkit/glue/resource_request_body_unittest.cc View 1 2 3 4 5 6 1 chunk +219 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 3 chunks +10 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 6 chunks +12 lines, -39 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
kinuko
http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h File webkit/glue/webupload_data.h (right): http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h#newcode24 webkit/glue/webupload_data.h:24: class WEBKIT_GLUE_EXPORT WebUploadData Having this in webkit/glue is probably ...
8 years, 4 months ago (2012-08-13 15:52:09 UTC) #1
kinuko
This is a CL split out from http://codereview.chromium.org/10828252/ (support FileSystem URL in File), adding a ...
8 years, 4 months ago (2012-08-13 16:35:52 UTC) #2
darin (slow to review)
http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h File webkit/glue/webupload_data.h (right): http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h#newcode24 webkit/glue/webupload_data.h:24: class WEBKIT_GLUE_EXPORT WebUploadData On 2012/08/13 15:52:09, kinuko wrote: > ...
8 years, 4 months ago (2012-08-13 16:48:49 UTC) #3
darin (slow to review)
http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h File webkit/glue/webupload_data.h (right): http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h#newcode24 webkit/glue/webupload_data.h:24: class WEBKIT_GLUE_EXPORT WebUploadData On 2012/08/13 16:48:49, darin wrote: > ...
8 years, 4 months ago (2012-08-13 20:47:36 UTC) #4
kinuko
http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h File webkit/glue/webupload_data.h (right): http://codereview.chromium.org/10834289/diff/9001/webkit/glue/webupload_data.h#newcode24 webkit/glue/webupload_data.h:24: class WEBKIT_GLUE_EXPORT WebUploadData On 2012/08/13 20:47:36, darin wrote: > ...
8 years, 4 months ago (2012-08-14 15:33:31 UTC) #5
kinuko
http://codereview.chromium.org/10834289/diff/9013/content/common/resource_dispatcher.h File content/common/resource_dispatcher.h (right): http://codereview.chromium.org/10834289/diff/9013/content/common/resource_dispatcher.h#newcode25 content/common/resource_dispatcher.h:25: } will remove this
8 years, 4 months ago (2012-08-15 04:45:01 UTC) #6
kinuko
(+willchan, cc-ing hashimoto@) Now tests look ok and we have less data copies. Darin: could ...
8 years, 4 months ago (2012-08-15 07:27:27 UTC) #7
darin (slow to review)
Overall, this looks great! http://codereview.chromium.org/10834289/diff/9013/chrome/browser/policy/device_management_service_browsertest.cc File chrome/browser/policy/device_management_service_browsertest.cc (right): http://codereview.chromium.org/10834289/diff/9013/chrome/browser/policy/device_management_service_browsertest.cc#newcode66 chrome/browser/policy/device_management_service_browsertest.cc:66: void ConstructResponse(const void* request_data, nit: ...
8 years, 4 months ago (2012-08-15 17:49:55 UTC) #8
willchan no longer on Chromium
I'm a bit disappointed that we are taking something quite ugly (UploadData) and mostly duplicating ...
8 years, 4 months ago (2012-08-16 01:51:39 UTC) #9
willchan no longer on Chromium
To clarify, I'm OK with this change as an intermediate step, but I don't like ...
8 years, 4 months ago (2012-08-16 01:55:04 UTC) #10
darin (slow to review)
Yes, that's the plan. See the other email thread where Kinuko and I were excitedly ...
8 years, 4 months ago (2012-08-16 04:14:17 UTC) #11
kinuko
Will, yes, I believe our goal is to kill UploadData but not to make it ...
8 years, 4 months ago (2012-08-16 07:13:00 UTC) #12
kinuko
http://codereview.chromium.org/10834289/diff/9013/chrome/browser/policy/device_management_service_browsertest.cc File chrome/browser/policy/device_management_service_browsertest.cc (right): http://codereview.chromium.org/10834289/diff/9013/chrome/browser/policy/device_management_service_browsertest.cc#newcode66 chrome/browser/policy/device_management_service_browsertest.cc:66: void ConstructResponse(const void* request_data, On 2012/08/15 17:49:55, darin wrote: ...
8 years, 4 months ago (2012-08-16 08:14:59 UTC) #13
willchan no longer on Chromium
net/ LGTM Do we need a test for the new ResourceRequestBody? I look forward to ...
8 years, 4 months ago (2012-08-16 20:39:42 UTC) #14
kinuko
Thanks! Added a test for ResourceRequestBody. scoped_refptr makes it easier to be attached as UserData, ...
8 years, 4 months ago (2012-08-17 10:13:57 UTC) #15
kinuko
Adding jam@ and tony@ for content/ and webkit/. John, Tony can you take a look? ...
8 years, 4 months ago (2012-08-20 01:53:36 UTC) #16
tony
webkit LGTM http://codereview.chromium.org/10834289/diff/12052/webkit/blob/blob_storage_controller_unittest.cc File webkit/blob/blob_storage_controller_unittest.cc (right): http://codereview.chromium.org/10834289/diff/12052/webkit/blob/blob_storage_controller_unittest.cc#newcode9 webkit/blob/blob_storage_controller_unittest.cc:9: #include "net/base/upload_data.h" Nit: Can you remove the ...
8 years, 4 months ago (2012-08-20 18:43:10 UTC) #17
jam
lgtm
8 years, 4 months ago (2012-08-20 20:20:55 UTC) #18
kinuko
8 years, 4 months ago (2012-08-21 14:26:20 UTC) #19
Resubmitted after rebasing onto http://crrev.com/152481 and moved
ResolveBlobReference code from webkit_blob to webkit_glue to fix dependency
violation. (I'll have a follow-up patch for you to review/complain)

Powered by Google App Engine
This is Rietveld 408576698