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

Issue 2345253002: Remove content::RequestInfo (Closed)

Created:
4 years, 3 months ago by tyoshino (SeeGerritForStatus)
Modified:
4 years, 3 months ago
Reviewers:
Tom Sepez, jam
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove content::RequestInfo This class is used only for passing bunch of parameters to the ResourceDispatcher from the WebURLLoaderImpl. Inside ResourceDispatcher, almost all of the members are just copied to a ResourceRequest created in it and converted into an IPC message. It's useless and is bothering developers with extra click when exploring and coding of trivial lines. Let's remove it. Comments in request_info.h are copied to resource_request.h and resource_dispatcher.h if needed. ResourceRequest creation logic in unit tests are adjusted so that variables for which the default value of RequestInfo is different from one of ResourceRequest are set to one of RequestInfo as before. Bonus: Typo fix visiblity -> visibility R=jam@chromium.org,tsepez@chromium.org BUG=none Committed: https://crrev.com/3191d5fe4e3c5778b72c7e3ff5a9ae37783d849d Cr-Commit-Position: refs/heads/master@{#419997}

Patch Set 1 : a #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -412 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M content/child/request_extra_data.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/child/request_extra_data.cc View 2 chunks +20 lines, -0 lines 0 comments Download
D content/child/request_info.h View 1 chunk +0 lines, -142 lines 0 comments Download
D content/child/request_info.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M content/child/resource_dispatcher.h View 2 chunks +19 lines, -7 lines 0 comments Download
M content/child/resource_dispatcher.cc View 6 chunks +29 lines, -95 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 18 chunks +56 lines, -52 lines 0 comments Download
M content/child/url_response_body_consumer_unittest.cc View 6 chunks +29 lines, -14 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 4 chunks +49 lines, -40 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 3 chunks +13 lines, -11 lines 0 comments Download
M content/common/resource_messages.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/resource_request.h View 4 chunks +21 lines, -10 lines 0 comments Download

Messages

Total messages: 42 (29 generated)
tyoshino (SeeGerritForStatus)
4 years, 3 months ago (2016-09-16 14:50:02 UTC) #13
tyoshino (SeeGerritForStatus)
Hi John, I'm going home. Please take a look only when the dry-run bots are ...
4 years, 3 months ago (2016-09-16 14:50:51 UTC) #16
jam
lgtm 👍
4 years, 3 months ago (2016-09-16 16:39:54 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/2345253002/140001
4 years, 3 months ago (2016-09-17 01:13:48 UTC) #22
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/261648)
4 years, 3 months ago (2016-09-17 01:22:47 UTC) #24
tyoshino (SeeGerritForStatus)
+mkwst Hi Mike, could you please review the IPC definition file?
4 years, 3 months ago (2016-09-17 11:31:45 UTC) #26
tyoshino (SeeGerritForStatus)
On 2016/09/17 11:31:45, tyoshino wrote: > +mkwst > > Hi Mike, could you please review ...
4 years, 3 months ago (2016-09-20 03:52:01 UTC) #28
Tom Sepez
messages LGTM.
4 years, 3 months ago (2016-09-20 16:37:16 UTC) #30
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/2345253002/160001
4 years, 3 months ago (2016-09-21 05:17:40 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/296820)
4 years, 3 months ago (2016-09-21 06:19:58 UTC) #36
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/2345253002/160001
4 years, 3 months ago (2016-09-21 06:38:11 UTC) #38
commit-bot: I haz the power
Committed patchset #2 (id:160001)
4 years, 3 months ago (2016-09-21 07:28:25 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 07:32:03 UTC) #42
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3191d5fe4e3c5778b72c7e3ff5a9ae37783d849d
Cr-Commit-Position: refs/heads/master@{#419997}

Powered by Google App Engine
This is Rietveld 408576698