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

Issue 2390983003: Implement Mojo SyncLoad (Closed)

Created:
4 years, 2 months ago by tzik
Modified:
4 years, 2 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, Randy Smith (Not in Mondays), yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, loading-reviews_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Mojo SyncLoad This CL add a Mojo IPC for synchronous resource loading, and plumps it from content::ResourceDispatcher to content::ResourceDispatcherHost. BUG=603396 Committed: https://crrev.com/4020282e126730319280b79d29c13464be2d6be5 Cr-Commit-Position: refs/heads/master@{#427011}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : . #

Patch Set 4 : +typemap #

Patch Set 5 : . #

Patch Set 6 : fix #

Patch Set 7 : rebase #

Patch Set 8 : resolve merge failure #

Patch Set 9 : +comment #

Total comments: 8

Patch Set 10 : s/cb/result_handler/. +routing_id. fix public_headers #

Total comments: 6

Patch Set 11 : unneeded |result| #

Total comments: 6

Patch Set 12 : +test, +comment, -deps #

Patch Set 13 : +TODO comment #

Patch Set 14 : +tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -19 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +66 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +32 lines, -0 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -9 lines 0 comments Download
M content/common/typemaps.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/common/url_loader_factory.mojom View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
A + content/common/url_sync_load_result.typemap View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/mojo-loading/http/tests/xmlhttprequest/web-apps/README.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 69 (47 generated)
tzik
PTAL
4 years, 2 months ago (2016-10-12 05:52:39 UTC) #21
yhirano
https://codereview.chromium.org/2390983003/diff/160001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390983003/diff/160001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2275 content/browser/loader/resource_dispatcher_host_impl.cc:2275: int32_t routing_id, int? https://codereview.chromium.org/2390983003/diff/160001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2279 content/browser/loader/resource_dispatcher_host_impl.cc:2279: const SyncLoadResultCallback& cb) { ...
4 years, 2 months ago (2016-10-12 10:55:30 UTC) #22
tzik
https://codereview.chromium.org/2390983003/diff/160001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390983003/diff/160001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2275 content/browser/loader/resource_dispatcher_host_impl.cc:2275: int32_t routing_id, On 2016/10/12 10:55:30, yhirano wrote: > int? ...
4 years, 2 months ago (2016-10-12 12:06:01 UTC) #25
yhirano
lgtm Please add some issue description.
4 years, 2 months ago (2016-10-13 04:40:05 UTC) #28
tzik
Adding OWNERS. Could you PTAL to this? dcheng: *.mojom and *.typemap mmenke: //content/browser/loader and overall ...
4 years, 2 months ago (2016-10-13 05:13:05 UTC) #33
kinuko
drive-by questions... https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc File content/browser/loader/url_loader_factory_impl.cc (right): https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc#newcode21 content/browser/loader/url_loader_factory_impl.cc:21: if (!result) { sorry, could you teach ...
4 years, 2 months ago (2016-10-13 05:36:00 UTC) #35
tzik
https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc File content/browser/loader/url_loader_factory_impl.cc (right): https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc#newcode21 content/browser/loader/url_loader_factory_impl.cc:21: if (!result) { On 2016/10/13 05:36:00, kinuko (slow) wrote: ...
4 years, 2 months ago (2016-10-13 06:31:26 UTC) #36
kinuko
content/child lg % one more question for the error handling https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc File content/browser/loader/url_loader_factory_impl.cc (right): https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc#newcode21 ...
4 years, 2 months ago (2016-10-13 11:39:01 UTC) #41
mmenke
Should we have some tests for this? Simple cases would be: 1) Success. 2) Network ...
4 years, 2 months ago (2016-10-13 15:07:04 UTC) #42
mmenke
On 2016/10/13 15:07:04, mmenke wrote: > Should we have some tests for this? Simple cases ...
4 years, 2 months ago (2016-10-13 15:07:54 UTC) #43
Avi (use Gerrit)
I'm not super up-to-speed on mojo. Stamp LGTM with other mojo people are happy.
4 years, 2 months ago (2016-10-13 15:23:52 UTC) #44
dcheng
https://codereview.chromium.org/2390983003/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2390983003/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2281 content/browser/loader/resource_dispatcher_host_impl.cc:2281: BeginRequest(request_id, request_data, result_handler, routing_id, Sorry, I don't understand this ...
4 years, 2 months ago (2016-10-14 05:23:27 UTC) #45
tzik
On 2016/10/13 15:07:04, mmenke wrote: > Should we have some tests for this? Simple cases ...
4 years, 2 months ago (2016-10-14 08:01:48 UTC) #48
tzik
https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc File content/browser/loader/url_loader_factory_impl.cc (right): https://codereview.chromium.org/2390983003/diff/180001/content/browser/loader/url_loader_factory_impl.cc#newcode21 content/browser/loader/url_loader_factory_impl.cc:21: if (!result) { On 2016/10/13 11:39:01, kinuko (slowish) wrote: ...
4 years, 2 months ago (2016-10-14 08:02:31 UTC) #51
mmenke
On 2016/10/14 08:01:48, tzik wrote: > On 2016/10/13 15:07:04, mmenke wrote: > > Should we ...
4 years, 2 months ago (2016-10-14 14:48:56 UTC) #54
dcheng
mojo lgtm
4 years, 2 months ago (2016-10-14 17:24:07 UTC) #55
tzik
On 2016/10/14 14:48:56, mmenke wrote: > On 2016/10/14 08:01:48, tzik wrote: > > On 2016/10/13 ...
4 years, 2 months ago (2016-10-18 13:04:40 UTC) #58
mmenke
On 2016/10/18 13:04:40, tzik wrote: > On 2016/10/14 14:48:56, mmenke wrote: > > On 2016/10/14 ...
4 years, 2 months ago (2016-10-20 15:38:35 UTC) #61
kinuko
lgtm/2 just in case it matters-- great to see all those additional tests!
4 years, 2 months ago (2016-10-20 16:17:39 UTC) #62
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/2390983003/260001
4 years, 2 months ago (2016-10-24 01:39:55 UTC) #65
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 2 months ago (2016-10-24 03:18:07 UTC) #67
commit-bot: I haz the power
4 years, 2 months ago (2016-10-24 03:21:06 UTC) #69
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/4020282e126730319280b79d29c13464be2d6be5
Cr-Commit-Position: refs/heads/master@{#427011}

Powered by Google App Engine
This is Rietveld 408576698