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

Issue 2449933003: Use Associated interfaces for mojo-loading (Closed)

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

Description

Use Associated interfaces for mojo-loading This CL makes URLLoader and URLLoaderClient associated for mojo-loading in order to deal with the IPC ordering issue with the exising IPC messages. BUG=603396 Committed: https://crrev.com/fe95d9b23ae824a85531260d87bb6f7897ea139c Cr-Commit-Position: refs/heads/master@{#430216}

Patch Set 1 : fix #

Patch Set 2 : rebase #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Total comments: 2

Patch Set 7 : fix #

Total comments: 2

Patch Set 8 : fix #

Patch Set 9 : rebase #

Patch Set 10 : fix #

Patch Set 11 : fix #

Patch Set 12 : fix #

Patch Set 13 : fix #

Patch Set 14 : fix #

Patch Set 15 : fix #

Patch Set 16 : fix #

Total comments: 6

Patch Set 17 : rebase #

Patch Set 18 : fix #

Total comments: 2

Patch Set 19 : fix #

Total comments: 2

Patch Set 20 : fix #

Patch Set 21 : fix #

Patch Set 22 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -118 lines) Patch
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler_unittest.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +12 lines, -12 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +13 lines, -13 lines 0 comments Download
M content/browser/loader/resource_message_filter.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/loader/resource_message_filter.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/loader/test_url_loader_client.h View 4 chunks +14 lines, -3 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +86 lines, -2 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.h View 2 chunks +13 lines, -12 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -5 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -13 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +97 lines, -14 lines 0 comments Download
M content/child/resource_dispatcher.h View 3 chunks +7 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +14 lines, -8 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M content/child/url_response_body_consumer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +6 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +16 lines, -6 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/url_loader_factory.mojom View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_blink_web_unit_test_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 166 (130 generated)
yhirano
PTAL. This change may break service worker navigation preload feature (I'm not sure - there ...
4 years, 1 month ago (2016-10-26 12:32:57 UTC) #33
jam
lgtm On 2016/10/26 12:32:57, yhirano wrote: > PTAL. > > This change may break service ...
4 years, 1 month ago (2016-10-26 15:55:55 UTC) #35
Ken Rockot(use gerrit already)
On 2016/10/26 at 15:55:55, jam wrote: > lgtm > > On 2016/10/26 12:32:57, yhirano wrote: ...
4 years, 1 month ago (2016-10-26 16:20:20 UTC) #36
Ken Rockot(use gerrit already)
On 2016/10/26 at 16:20:20, Ken Rockot wrote: > On 2016/10/26 at 15:55:55, jam wrote: > ...
4 years, 1 month ago (2016-10-26 16:21:24 UTC) #37
horo
On 2016/10/26 12:32:57, yhirano wrote: > This change may break service worker navigation preload feature ...
4 years, 1 month ago (2016-10-26 16:55:59 UTC) #38
yhirano
On 2016/10/26 16:21:24, Ken Rockot wrote: > On 2016/10/26 at 16:20:20, Ken Rockot wrote: > ...
4 years, 1 month ago (2016-10-26 17:00:46 UTC) #39
Ken Rockot(use gerrit already)
It looks like you're trying to send an unexpected side of an associated interface pipe. ...
4 years, 1 month ago (2016-10-26 17:01:29 UTC) #40
yhirano
Rebased, and fixed the test failure. PTAL again.
4 years, 1 month ago (2016-10-27 10:43:43 UTC) #58
yhirano
On 2016/10/27 10:43:43, yhirano wrote: > Rebased, and fixed the test failure. PTAL again. Oops, ...
4 years, 1 month ago (2016-10-27 11:11:23 UTC) #61
Ken Rockot(use gerrit already)
Taking a step back, what do you mean in the CL description by "deal with ...
4 years, 1 month ago (2016-10-27 16:20:23 UTC) #62
yhirano
On 2016/10/27 16:20:23, Ken Rockot wrote: > Taking a step back, what do you mean ...
4 years, 1 month ago (2016-10-28 02:19:51 UTC) #65
horo
https://codereview.chromium.org/2449933003/diff/260001/content/browser/service_worker/service_worker_fetch_dispatcher.h File content/browser/service_worker/service_worker_fetch_dispatcher.h (right): https://codereview.chromium.org/2449933003/diff/260001/content/browser/service_worker/service_worker_fetch_dispatcher.h#newcode91 content/browser/service_worker/service_worker_fetch_dispatcher.h:91: std::unique_ptr<mojom::URLLoaderClient> url_loader_client_; As I talked offline, you must keep ...
4 years, 1 month ago (2016-10-28 03:01:28 UTC) #66
yhirano
https://codereview.chromium.org/2449933003/diff/260001/content/browser/service_worker/service_worker_fetch_dispatcher.h File content/browser/service_worker/service_worker_fetch_dispatcher.h (right): https://codereview.chromium.org/2449933003/diff/260001/content/browser/service_worker/service_worker_fetch_dispatcher.h#newcode91 content/browser/service_worker/service_worker_fetch_dispatcher.h:91: std::unique_ptr<mojom::URLLoaderClient> url_loader_client_; On 2016/10/28 03:01:28, horo wrote: > As ...
4 years, 1 month ago (2016-11-01 10:10:31 UTC) #102
yhirano
https://codereview.chromium.org/2449933003/diff/240001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/240001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode394 content/browser/service_worker/service_worker_fetch_dispatcher.cc:394: // https://ggetithub.com/w3c/ServiceWorker/issues/920#issuecomment-251150270 On 2016/10/27 16:20:23, Ken Rockot wrote: > ...
4 years, 1 month ago (2016-11-01 10:45:19 UTC) #105
yhirano
> It's also worth noting that I don't think your delegating solution solves the > ...
4 years, 1 month ago (2016-11-01 11:00:16 UTC) #106
horo
https://codereview.chromium.org/2449933003/diff/460001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/460001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode36 content/browser/service_worker/service_worker_fetch_dispatcher.cc:36: class DelegatingURLLoader final : public mojom::URLLoader { Please write ...
4 years, 1 month ago (2016-11-02 02:24:23 UTC) #109
horo
4 years, 1 month ago (2016-11-02 02:24:25 UTC) #110
yhirano
https://codereview.chromium.org/2449933003/diff/460001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/460001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode36 content/browser/service_worker/service_worker_fetch_dispatcher.cc:36: class DelegatingURLLoader final : public mojom::URLLoader { On 2016/11/02 ...
4 years, 1 month ago (2016-11-02 03:58:59 UTC) #118
horo
content/browser/service_worker/ lgtm with a nit. https://codereview.chromium.org/2449933003/diff/520001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/520001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode369 content/browser/service_worker/service_worker_fetch_dispatcher.cc:369: nit: DCHECK(!url_loader_factory_);
4 years, 1 month ago (2016-11-02 07:39:20 UTC) #121
yhirano
https://codereview.chromium.org/2449933003/diff/520001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/520001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode369 content/browser/service_worker/service_worker_fetch_dispatcher.cc:369: On 2016/11/02 07:39:20, horo wrote: > nit: > > ...
4 years, 1 month ago (2016-11-02 07:58:12 UTC) #124
yhirano
rockot@, PTAL again.
4 years, 1 month ago (2016-11-03 13:08:38 UTC) #127
Ken Rockot(use gerrit already)
On 2016/11/01 at 11:00:16, yhirano wrote: > > It's also worth noting that I don't ...
4 years, 1 month ago (2016-11-03 18:29:04 UTC) #129
yhirano
On 2016/11/03 18:29:04, Ken Rockot wrote: > On 2016/11/01 at 11:00:16, yhirano wrote: > > ...
4 years, 1 month ago (2016-11-04 01:20:04 UTC) #130
Ken Rockot(use gerrit already)
On 2016/11/04 at 01:20:04, yhirano wrote: > On 2016/11/03 18:29:04, Ken Rockot wrote: > > ...
4 years, 1 month ago (2016-11-04 01:26:20 UTC) #131
yhirano
Thank you!
4 years, 1 month ago (2016-11-04 01:27:47 UTC) #132
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/2449933003/540001
4 years, 1 month ago (2016-11-04 01:39:22 UTC) #135
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/296685)
4 years, 1 month ago (2016-11-04 01:50:28 UTC) #137
yhirano
+dcheng@ for content/common/url_loader_factory.mojom.
4 years, 1 month ago (2016-11-04 01:55:25 UTC) #139
dcheng
mojom LGTM https://codereview.chromium.org/2449933003/diff/540001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/540001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode405 content/browser/service_worker/service_worker_fetch_dispatcher.cc:405: new DelegatingURLLoaderClient(std::move(url_loader_client_ptr))); Nit: auto url_loader_client = base::MakeUnique<DelegatingURLLoaderClient>(...);
4 years, 1 month ago (2016-11-04 06:49:39 UTC) #140
yhirano
https://codereview.chromium.org/2449933003/diff/540001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2449933003/diff/540001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode405 content/browser/service_worker/service_worker_fetch_dispatcher.cc:405: new DelegatingURLLoaderClient(std::move(url_loader_client_ptr))); On 2016/11/04 06:49:39, dcheng wrote: > Nit: ...
4 years, 1 month ago (2016-11-04 07:14:08 UTC) #143
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/2449933003/570001
4 years, 1 month ago (2016-11-04 16:53:47 UTC) #152
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/331315)
4 years, 1 month ago (2016-11-04 16:58:38 UTC) #154
yzshen1
On 2016/11/03 18:29:04, Ken Rockot wrote: > On 2016/11/01 at 11:00:16, yhirano wrote: > > ...
4 years, 1 month ago (2016-11-04 17:50:09 UTC) #155
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/2449933003/590001
4 years, 1 month ago (2016-11-07 04:08:35 UTC) #162
commit-bot: I haz the power
Committed patchset #22 (id:590001)
4 years, 1 month ago (2016-11-07 04:18:35 UTC) #164
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 04:20:52 UTC) #166
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/fe95d9b23ae824a85531260d87bb6f7897ea139c
Cr-Commit-Position: refs/heads/master@{#430216}

Powered by Google App Engine
This is Rietveld 408576698