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

Issue 2715423003: [Mojo-Loading] Use independent URLLoaderClient (Closed)

Created:
3 years, 9 months ago by yhirano
Modified:
3 years, 9 months ago
Reviewers:
kinuko, yzshen1, dcheng, tzik
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tzik, serviceworker-reviews, jam, Randy Smith (Not in Mondays), yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kinuko+serviceworker, blink-worker-reviews_chromium.org, darin-cc_chromium.org, nhiroki, loading-reviews_chromium.org, horo+watch_chromium.org, darin (slow to review), shimazu+serviceworker_chromium.org, kinuko+watch, mmenke, horo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mojo-Loading] Use independent URLLoaderClient With this CL, various content/ classes start using independent URLLoaderClient and DownloadedTempFile instead of associated interfaces. As the blob creation became a sync operation, no message ordering guarantee is needed for DownloadedTempFile. According to the test results, it seems the guarantee is not needed for URLLoaderClient, too. This CL also sets the appropriate task runner (i.e., the loading task runner) to the URLLoaderClientImpl, which was blocked by the channel-associated interfaces. BUG=603396 Review-Url: https://codereview.chromium.org/2715423003 Cr-Commit-Position: refs/heads/master@{#453832} Committed: https://chromium.googlesource.com/chromium/src/+/6f57b50b31b18fdfbd8cabf7a6709cd7f809f181

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Total comments: 2

Patch Set 6 : fix #

Total comments: 4

Patch Set 7 : fix #

Total comments: 2

Patch Set 8 : fix #

Patch Set 9 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -183 lines) Patch
M content/browser/loader/downloaded_temp_file_impl.h View 1 2 3 4 5 1 chunk +5 lines, -11 lines 0 comments Download
M content/browser/loader/downloaded_temp_file_impl.cc View 1 2 3 4 1 chunk +2 lines, -16 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.h View 3 chunks +7 lines, -8 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler_unittest.cc View 1 2 3 4 4 chunks +11 lines, -16 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 7 chunks +23 lines, -26 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_message_filter.h View 1 chunk +5 lines, -6 lines 0 comments Download
M content/browser/loader/resource_message_filter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/test_url_loader_client.h View 1 2 3 4 chunks +6 lines, -8 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.h View 1 chunk +11 lines, -13 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 chunks +6 lines, -9 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -4 lines 1 comment Download
M content/child/url_loader_client_impl.h View 1 2 4 chunks +6 lines, -7 lines 0 comments Download
M content/child/url_loader_client_impl.cc View 1 2 3 4 5 6 2 chunks +4 lines, -7 lines 0 comments Download
M content/child/url_loader_client_impl_unittest.cc View 2 chunks +7 lines, -8 lines 0 comments Download
M content/common/url_loader.mojom View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/url_loader_factory.mojom View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 53 (40 generated)
yhirano
PTAL +tzik@ for the overall change. +yzshen@ as a mojo expert. +dcheng@ for mojom files. ...
3 years, 9 months ago (2017-02-28 11:15:25 UTC) #22
kinuko
Woohoo! lgtm
3 years, 9 months ago (2017-02-28 13:08:28 UTC) #25
tzik
LGTM!!!
3 years, 9 months ago (2017-02-28 13:40:26 UTC) #26
yzshen1
LGTM https://codereview.chromium.org/2715423003/diff/70001/content/browser/loader/downloaded_temp_file_impl.h File content/browser/loader/downloaded_temp_file_impl.h (right): https://codereview.chromium.org/2715423003/diff/70001/content/browser/loader/downloaded_temp_file_impl.h#newcode21 content/browser/loader/downloaded_temp_file_impl.h:21: // interface, and returns the interface ptr info ...
3 years, 9 months ago (2017-02-28 17:56:33 UTC) #31
yhirano
https://codereview.chromium.org/2715423003/diff/70001/content/browser/loader/downloaded_temp_file_impl.h File content/browser/loader/downloaded_temp_file_impl.h (right): https://codereview.chromium.org/2715423003/diff/70001/content/browser/loader/downloaded_temp_file_impl.h#newcode21 content/browser/loader/downloaded_temp_file_impl.h:21: // interface, and returns the interface ptr info to ...
3 years, 9 months ago (2017-03-01 00:53:43 UTC) #33
dcheng
https://codereview.chromium.org/2715423003/diff/90001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2715423003/diff/90001/content/child/resource_dispatcher.cc#newcode420 content/child/resource_dispatcher.cc:420: request_info->download_to_file && !it->second->url_loader; I think a comment here would ...
3 years, 9 months ago (2017-03-01 01:29:13 UTC) #35
yhirano
https://codereview.chromium.org/2715423003/diff/90001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2715423003/diff/90001/content/child/resource_dispatcher.cc#newcode420 content/child/resource_dispatcher.cc:420: request_info->download_to_file && !it->second->url_loader; On 2017/03/01 01:29:13, dcheng wrote: > ...
3 years, 9 months ago (2017-03-01 01:39:20 UTC) #38
dcheng
lgtm
3 years, 9 months ago (2017-03-01 01:42:24 UTC) #39
dcheng
(Forgot to send comments) https://codereview.chromium.org/2715423003/diff/110001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2715423003/diff/110001/content/child/resource_dispatcher.cc#newcode420 content/child/resource_dispatcher.cc:420: // release it here. I ...
3 years, 9 months ago (2017-03-01 01:44:25 UTC) #40
yhirano
https://codereview.chromium.org/2715423003/diff/110001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2715423003/diff/110001/content/child/resource_dispatcher.cc#newcode420 content/child/resource_dispatcher.cc:420: // release it here. On 2017/03/01 01:44:24, dcheng wrote: ...
3 years, 9 months ago (2017-03-01 01:53:04 UTC) #45
dcheng
lgtm https://codereview.chromium.org/2715423003/diff/150001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2715423003/diff/150001/content/child/resource_dispatcher.cc#newcode420 content/child/resource_dispatcher.cc:420: // are using Chrome IPC), we should release ...
3 years, 9 months ago (2017-03-01 01:57:49 UTC) #46
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/2715423003/150001
3 years, 9 months ago (2017-03-01 02:04:01 UTC) #50
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 03:45:20 UTC) #53
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/6f57b50b31b18fdfbd8cabf7a670...

Powered by Google App Engine
This is Rietveld 408576698