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

Issue 2960023002: Remove SupportsUserData from ResourceRequestBodyImpl. (Closed)

Created:
3 years, 5 months ago by mmenke
Modified:
3 years, 5 months ago
Reviewers:
kinuko, jam, dmurph
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, rdsmith+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove SupportsUserData from ResourceRequestBodyImpl. ResourceRequestBodyImpl is sent between processes via IPC and Mojo, and since we can't send the UserData along with it, it doesn't make sense to inherit from SupportsUserData. It was only being used to stash upload blob handles, so this CL juggles around ownership of those. BUG=737191 Review-Url: https://codereview.chromium.org/2960023002 Cr-Commit-Position: refs/heads/master@{#483140} Committed: https://chromium.googlesource.com/chromium/src/+/ed44e6c201f6e31ab4dc71b7914628545a551eda

Patch Set 1 #

Patch Set 2 : .... #

Total comments: 5

Patch Set 3 : Switch to BlobHandles*, fix two comments #

Total comments: 2

Patch Set 4 : Merge, response to comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -28 lines) Patch
M content/browser/blob_storage/chrome_blob_storage_context.h View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download
M content/browser/blob_storage/chrome_blob_storage_context.cc View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download
M content/browser/loader/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 9 chunks +13 lines, -10 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/resource_request_body_impl.h View 2 chunks +1 line, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (22 generated)
mmenke
[dmurph]: Is this reasonable? I'm open to other ideas. We're working on a new network ...
3 years, 5 months ago (2017-06-27 21:24:10 UTC) #9
dmurph
This is great - I'd love to ditch the unique_ptr for just std::move-ing the vector. ...
3 years, 5 months ago (2017-06-27 21:29:07 UTC) #10
mmenke
https://codereview.chromium.org/2960023002/diff/20001/content/browser/blob_storage/chrome_blob_storage_context.h File content/browser/blob_storage/chrome_blob_storage_context.h (right): https://codereview.chromium.org/2960023002/diff/20001/content/browser/blob_storage/chrome_blob_storage_context.h#newcode99 content/browser/blob_storage/chrome_blob_storage_context.h:99: std::unique_ptr<BlobHandles> GetBodyBlobDataHandles( On 2017/06/27 21:29:07, dmurph wrote: > Can ...
3 years, 5 months ago (2017-06-27 21:32:23 UTC) #11
dmurph
https://codereview.chromium.org/2960023002/diff/20001/content/browser/blob_storage/chrome_blob_storage_context.h File content/browser/blob_storage/chrome_blob_storage_context.h (right): https://codereview.chromium.org/2960023002/diff/20001/content/browser/blob_storage/chrome_blob_storage_context.h#newcode99 content/browser/blob_storage/chrome_blob_storage_context.h:99: std::unique_ptr<BlobHandles> GetBodyBlobDataHandles( On 2017/06/27 21:32:22, mmenke wrote: > On ...
3 years, 5 months ago (2017-06-27 21:35:53 UTC) #12
mmenke
Thanks for the feedback! https://codereview.chromium.org/2960023002/diff/20001/content/browser/blob_storage/chrome_blob_storage_context.h File content/browser/blob_storage/chrome_blob_storage_context.h (right): https://codereview.chromium.org/2960023002/diff/20001/content/browser/blob_storage/chrome_blob_storage_context.h#newcode99 content/browser/blob_storage/chrome_blob_storage_context.h:99: std::unique_ptr<BlobHandles> GetBodyBlobDataHandles( On 2017/06/27 21:35:53, ...
3 years, 5 months ago (2017-06-27 21:48:44 UTC) #15
dmurph
thanks for the patch! Cleans things up a bit. lgtm
3 years, 5 months ago (2017-06-27 22:18:09 UTC) #18
mmenke
On 2017/06/27 22:18:09, dmurph wrote: > thanks for the patch! Cleans things up a bit. ...
3 years, 5 months ago (2017-06-27 22:18:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2960023002/40001
3 years, 5 months ago (2017-06-27 22:19:25 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/475426)
3 years, 5 months ago (2017-06-27 22:28:04 UTC) #23
mmenke
[+jam]: Please review content/common/resource_request_body_impl.h
3 years, 5 months ago (2017-06-27 22:31:52 UTC) #25
kinuko
Drive-by, this looks great! lgtm https://codereview.chromium.org/2960023002/diff/40001/content/browser/loader/resource_request_info_impl.h File content/browser/loader/resource_request_info_impl.h (right): https://codereview.chromium.org/2960023002/diff/40001/content/browser/loader/resource_request_info_impl.h#newcode245 content/browser/loader/resource_request_info_impl.h:245: // Keeps blobs alive ...
3 years, 5 months ago (2017-06-28 01:43:28 UTC) #27
mmenke
https://codereview.chromium.org/2960023002/diff/40001/content/browser/loader/resource_request_info_impl.h File content/browser/loader/resource_request_info_impl.h (right): https://codereview.chromium.org/2960023002/diff/40001/content/browser/loader/resource_request_info_impl.h#newcode245 content/browser/loader/resource_request_info_impl.h:245: // Keeps blobs alive for the duration of the ...
3 years, 5 months ago (2017-06-28 17:31:37 UTC) #28
jam
lgtm
3 years, 5 months ago (2017-06-28 19:44:03 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2960023002/60001
3 years, 5 months ago (2017-06-28 19:50:44 UTC) #34
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 21:13:52 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ed44e6c201f6e31ab4dc71b79146...

Powered by Google App Engine
This is Rietveld 408576698