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

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)

Created:
4 years, 2 months ago by tyoshino (SeeGerritForStatus)
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dcheng, dglazkov+blink, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, kinuko+watch, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AssociatedURLLoader shouldn't derive from WebURLLoader The AssociatedURLLoader is derived from the WebURLLoader interface while WebURLLoaderImpl is also derived from it. WebURLLoaderImpl is an API to use the resource dispatcher and net stack beyond it. AssociatedURLLoader is a wrapper for the DocumentThreadableLoader logic which implements CORS, etc. defined in the Fetch Standard. They're not as-is. Even looking at the API, there're clear differences e.g. the WebURLLoaderOptions is specific to the AssociatedURLLoader. This unnecessary inheritance has been causing confusion when reading the code. We should remove this inheritance. R=bbudge@chromium.org,jochen@chromium.org,kinuko@chromium.org,raymes@chromium.org,dalecurtis@chromium.org,mmenke@chromium.org BUG=none Committed: https://crrev.com/6d7671174edc71594c28a3766d641a2c1dbf47e9 Cr-Commit-Position: refs/heads/master@{#427022}

Patch Set 1 : Fix Android build #

Patch Set 2 : Remove blank line #

Total comments: 6

Patch Set 3 : Rebase #

Patch Set 4 : Addressed #38 #

Total comments: 6

Patch Set 5 : Rebased and addressed #44 #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1045 lines, -2403 lines) Patch
M chrome/renderer/net/net_error_helper.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M components/nacl/renderer/file_downloader.h View 4 chunks +10 lines, -17 lines 0 comments Download
M components/nacl/renderer/file_downloader.cc View 5 chunks +9 lines, -18 lines 0 comments Download
M components/nacl/renderer/manifest_downloader.h View 4 chunks +10 lines, -17 lines 0 comments Download
M components/nacl/renderer/manifest_downloader.cc View 3 chunks +5 lines, -14 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 13 chunks +24 lines, -30 lines 0 comments Download
A + content/public/renderer/associated_resource_fetcher.h View 2 chunks +16 lines, -33 lines 0 comments Download
M content/public/renderer/resource_fetcher.h View 3 chunks +0 lines, -15 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A content/renderer/fetchers/associated_resource_fetcher_impl.h View 1 chunk +71 lines, -0 lines 0 comments Download
A content/renderer/fetchers/associated_resource_fetcher_impl.cc View 1 2 3 4 1 chunk +184 lines, -0 lines 0 comments Download
M content/renderer/fetchers/manifest_fetcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/fetchers/manifest_fetcher.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M content/renderer/fetchers/resource_fetcher_impl.h View 1 chunk +5 lines, -23 lines 0 comments Download
M content/renderer/fetchers/resource_fetcher_impl.cc View 1 2 3 4 4 chunks +115 lines, -49 lines 0 comments Download
D content/renderer/fetchers/web_url_loader_client_impl.h View 1 chunk +0 lines, -85 lines 0 comments Download
D content/renderer/fetchers/web_url_loader_client_impl.cc View 1 chunk +0 lines, -82 lines 0 comments Download
M content/renderer/media/android/media_info_loader.h View 3 chunks +16 lines, -28 lines 0 comments Download
M content/renderer/media/android/media_info_loader.cc View 5 chunks +17 lines, -32 lines 0 comments Download
M content/renderer/media/android/media_info_loader_unittest.cc View 5 chunks +8 lines, -7 lines 0 comments Download
M content/renderer/mojo_context_state.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 4 chunks +10 lines, -17 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 4 chunks +8 lines, -19 lines 0 comments Download
M content/renderer/pepper/pepper_url_loader_host.h View 3 chunks +13 lines, -24 lines 0 comments Download
M content/renderer/pepper/pepper_url_loader_host.cc View 1 2 3 10 chunks +20 lines, -31 lines 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.cc View 2 chunks +10 lines, -8 lines 0 comments Download
M content/renderer/resource_fetcher_browsertest.cc View 7 chunks +0 lines, -7 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A content/test/mock_webassociatedurlloader.h View 1 chunk +33 lines, -0 lines 0 comments Download
A + content/test/mock_webassociatedurlloader.cc View 2 chunks +3 lines, -3 lines 0 comments Download
D content/test/mock_weburlloader.h View 1 chunk +0 lines, -38 lines 0 comments Download
D content/test/mock_weburlloader.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h View 1 4 chunks +13 lines, -16 lines 0 comments Download
M extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc View 3 chunks +7 lines, -11 lines 0 comments Download
M media/blink/BUILD.gn View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M media/blink/active_loader.h View 3 chunks +3 lines, -3 lines 0 comments Download
M media/blink/active_loader.cc View 1 chunk +3 lines, -2 lines 0 comments Download
A media/blink/mock_webassociatedurlloader.h View 1 chunk +32 lines, -0 lines 0 comments Download
A + media/blink/mock_webassociatedurlloader.cc View 2 chunks +3 lines, -3 lines 0 comments Download
D media/blink/mock_weburlloader.h View 1 chunk +0 lines, -37 lines 0 comments Download
D media/blink/mock_weburlloader.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 14 chunks +16 lines, -17 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.h View 3 chunks +18 lines, -28 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.cc View 7 chunks +17 lines, -29 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider_unittest.cc View 9 chunks +12 lines, -13 lines 0 comments Download
D third_party/WebKit/Source/web/AssociatedURLLoader.h View 1 chunk +0 lines, -100 lines 0 comments Download
D third_party/WebKit/Source/web/AssociatedURLLoader.cpp View 1 chunk +0 lines, -489 lines 0 comments Download
D third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp View 1 chunk +0 lines, -722 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.h View 1 chunk +71 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.cpp View 16 chunks +89 lines, -83 lines 0 comments Download
A + third_party/WebKit/Source/web/WebAssociatedURLLoaderImplTest.cpp View 28 chunks +62 lines, -80 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
A + third_party/WebKit/public/web/WebAssociatedURLLoader.h View 2 chunks +16 lines, -17 lines 0 comments Download
A third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h View 1 chunk +35 lines, -0 lines 0 comments Download
A + third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h View 2 chunks +12 lines, -11 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 4 chunks +8 lines, -6 lines 0 comments Download
D third_party/WebKit/public/web/WebURLLoaderOptions.h View 1 chunk +0 lines, -65 lines 0 comments Download

Messages

Total messages: 59 (41 generated)
tyoshino (SeeGerritForStatus)
Hi Jochen, This is a follow up for https://codereview.chromium.org/2230173002/#msg73 Sorry, it's huge, but could you ...
4 years, 2 months ago (2016-10-12 08:27:14 UTC) #27
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-12 09:40:42 UTC) #28
tyoshino (SeeGerritForStatus)
+bbudge for components/nacl/renderer/ +mmenke for chrome/renderer/net/ +hubbe for media/blink/ +raymes for extensions/renderer/guest_view/mime_handler_view/
4 years, 2 months ago (2016-10-12 10:07:03 UTC) #33
mmenke
On 2016/10/12 10:07:03, tyoshino wrote: > +bbudge for components/nacl/renderer/ > +mmenke for chrome/renderer/net/ > +hubbe ...
4 years, 2 months ago (2016-10-12 14:48:28 UTC) #34
bbudge
components/nacl/renderer content/renderer/pepper lgtm w/nit https://codereview.chromium.org/2399463007/diff/180001/content/renderer/pepper/pepper_url_loader_host.cc File content/renderer/pepper/pepper_url_loader_host.cc (right): https://codereview.chromium.org/2399463007/diff/180001/content/renderer/pepper/pepper_url_loader_host.cc#newcode103 content/renderer/pepper/pepper_url_loader_host.cc:103: std::unique_ptr<blink::WebAssociatedURLLoader> for_destruction_only( nit: prefix blink ...
4 years, 2 months ago (2016-10-12 17:45:03 UTC) #35
raymes
https://codereview.chromium.org/2399463007/diff/180001/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h File extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h (right): https://codereview.chromium.org/2399463007/diff/180001/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h#newcode44 extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h:44: public blink::WebAssociatedURLLoaderClient { This looks ok as long as ...
4 years, 2 months ago (2016-10-14 02:36:46 UTC) #36
kinuko
This looks like a nice cleanup! https://codereview.chromium.org/2399463007/diff/180001/content/renderer/fetchers/resource_fetcher_impl.cc File content/renderer/fetchers/resource_fetcher_impl.cc (right): https://codereview.chromium.org/2399463007/diff/180001/content/renderer/fetchers/resource_fetcher_impl.cc#newcode90 content/renderer/fetchers/resource_fetcher_impl.cc:90: // The AssociatedURLLoader ...
4 years, 2 months ago (2016-10-14 03:15:21 UTC) #38
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2399463007/diff/180001/content/renderer/fetchers/resource_fetcher_impl.cc File content/renderer/fetchers/resource_fetcher_impl.cc (right): https://codereview.chromium.org/2399463007/diff/180001/content/renderer/fetchers/resource_fetcher_impl.cc#newcode90 content/renderer/fetchers/resource_fetcher_impl.cc:90: // The AssociatedURLLoader will continue after a load failure. ...
4 years, 2 months ago (2016-10-14 06:12:07 UTC) #39
kinuko
lgtm https://codereview.chromium.org/2399463007/diff/220001/content/renderer/fetchers/resource_fetcher_impl.cc File content/renderer/fetchers/resource_fetcher_impl.cc (right): https://codereview.chromium.org/2399463007/diff/220001/content/renderer/fetchers/resource_fetcher_impl.cc#newcode56 content/renderer/fetchers/resource_fetcher_impl.cc:56: DCHECK(status_ == LOADING); DCHECK_EQ https://codereview.chromium.org/2399463007/diff/220001/content/renderer/fetchers/resource_fetcher_impl.cc#newcode84 content/renderer/fetchers/resource_fetcher_impl.cc:84: DCHECK(data_length > ...
4 years, 2 months ago (2016-10-14 13:23:14 UTC) #44
tyoshino (SeeGerritForStatus)
Thanks. I've applied your suggestions also to associated_resource_fetcher_impl.cc and updated the comments in it by ...
4 years, 2 months ago (2016-10-14 14:08:02 UTC) #45
raymes
lgtm
4 years, 2 months ago (2016-10-14 23:18:03 UTC) #46
tyoshino (SeeGerritForStatus)
hubbe, Please review media/ changes. They're basically just renaming of classes and files. Thanks
4 years, 2 months ago (2016-10-17 05:04:17 UTC) #47
tyoshino (SeeGerritForStatus)
On 2016/10/17 05:04:17, tyoshino wrote: > hubbe, > > Please review media/ changes. They're basically ...
4 years, 2 months ago (2016-10-20 00:33:23 UTC) #48
kinuko
+dalecurtis@ too Can someone in media/ stamp for this change? I'd like this change to ...
4 years, 2 months ago (2016-10-21 08:22:52 UTC) #50
DaleCurtis
Sorry, have been OOO, media/ lgtm
4 years, 2 months ago (2016-10-21 17:15:23 UTC) #51
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/2399463007/260001
4 years, 1 month ago (2016-10-24 05:12:14 UTC) #55
commit-bot: I haz the power
Committed patchset #6 (id:260001)
4 years, 1 month ago (2016-10-24 06:45:21 UTC) #57
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 06:47:28 UTC) #59
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6d7671174edc71594c28a3766d641a2c1dbf47e9
Cr-Commit-Position: refs/heads/master@{#427022}

Powered by Google App Engine
This is Rietveld 408576698