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

Issue 2566943002: Dispatch transfer size update notification on mojo-loading (Closed)

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

Description

Dispatch transfer size update notification on mojo-loading With this CL, MojoAsyncResourceHandler dispatches OnTransferSizeUpdated messages when report_raw_headers is set in the request. This is for devtools which needs transfer size update events. BUG=603396 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Committed: https://crrev.com/a275b3ccec68e3e75a81bd6b51fd937fabf97416 Cr-Commit-Position: refs/heads/master@{#439697}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 16

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Total comments: 12

Patch Set 7 : fix #

Patch Set 8 : rebase #

Patch Set 9 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -16 lines) Patch
M content/browser/loader/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 4 chunks +20 lines, -7 lines 0 comments Download
M content/browser/loader/test_url_loader_client.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 1 2 3 4 5 6 6 chunks +77 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -3 lines 0 comments Download
M content/common/url_loader.mojom View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A content/test/data/gzip-content.svgz View 1 2 3 Binary file 0 comments Download
A content/test/data/gzip-content.svgz.mock-http-headers View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/test/url_request/url_request_mock_http_job.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 65 (48 generated)
yhirano
4 years ago (2016-12-12 09:06:49 UTC) #14
yhirano
+mmenke@
4 years ago (2016-12-12 15:01:36 UTC) #18
tzik
lgtm
4 years ago (2016-12-13 13:00:48 UTC) #19
mmenke
Just looked at content/browser and content/common (Don't really know the rest). https://codereview.chromium.org/2566943002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): ...
4 years ago (2016-12-13 20:01:25 UTC) #20
yhirano
https://codereview.chromium.org/2566943002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2566943002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc#newcode147 content/browser/loader/mojo_async_resource_handler.cc:147: reported_total_received_bytes_ = 0; On 2016/12/13 20:01:25, mmenke wrote: > ...
4 years ago (2016-12-14 16:47:27 UTC) #32
yhirano
+jam@ for content/ +dcheng@ for content/common/url_loader.mojom
4 years ago (2016-12-14 16:52:22 UTC) #34
mmenke
content/browser/loader LGTM! https://codereview.chromium.org/2566943002/diff/140001/content/browser/loader/url_loader_factory_impl_unittest.cc File content/browser/loader/url_loader_factory_impl_unittest.cc (right): https://codereview.chromium.org/2566943002/diff/140001/content/browser/loader/url_loader_factory_impl_unittest.cc#newcode507 content/browser/loader/url_loader_factory_impl_unittest.cc:507: EXPECT_GT(client.completion_status().encoded_data_length, 0); Optional: Could use EXPECT_EQ and ...
4 years ago (2016-12-14 18:18:55 UTC) #35
dcheng
https://codereview.chromium.org/2566943002/diff/140001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2566943002/diff/140001/content/child/resource_dispatcher.cc#newcode585 content/child/resource_dispatcher.cc:585: int transfer_size_diff) { Can we use int64_t or int ...
4 years ago (2016-12-15 06:29:02 UTC) #39
yhirano
https://codereview.chromium.org/2566943002/diff/140001/content/browser/loader/url_loader_factory_impl_unittest.cc File content/browser/loader/url_loader_factory_impl_unittest.cc (right): https://codereview.chromium.org/2566943002/diff/140001/content/browser/loader/url_loader_factory_impl_unittest.cc#newcode507 content/browser/loader/url_loader_factory_impl_unittest.cc:507: EXPECT_GT(client.completion_status().encoded_data_length, 0); On 2016/12/14 18:18:55, mmenke (Out Dec 17 ...
4 years ago (2016-12-15 11:28:00 UTC) #46
dcheng
https://codereview.chromium.org/2566943002/diff/140001/content/common/url_loader.mojom File content/common/url_loader.mojom (right): https://codereview.chromium.org/2566943002/diff/140001/content/common/url_loader.mojom#newcode56 content/common/url_loader.mojom:56: // and OnReceiveRedirect). It must be positive. On 2016/12/15 ...
4 years ago (2016-12-15 16:23:59 UTC) #49
yhirano
https://codereview.chromium.org/2566943002/diff/140001/content/common/url_loader.mojom File content/common/url_loader.mojom (right): https://codereview.chromium.org/2566943002/diff/140001/content/common/url_loader.mojom#newcode56 content/common/url_loader.mojom:56: // and OnReceiveRedirect). It must be positive. On 2016/12/15 ...
4 years ago (2016-12-16 05:30:23 UTC) #52
dcheng
lgtm
4 years ago (2016-12-16 08:37:45 UTC) #55
yhirano
jam@: can you take a look at this change?
4 years ago (2016-12-19 04:38:41 UTC) #56
jam
lgtm
4 years ago (2016-12-19 18:17:50 UTC) #57
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/2566943002/200001
4 years ago (2016-12-20 02:32:32 UTC) #60
commit-bot: I haz the power
Committed patchset #9 (id:200001)
4 years ago (2016-12-20 03:59:23 UTC) #63
commit-bot: I haz the power
4 years ago (2016-12-20 04:01:47 UTC) #65
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a275b3ccec68e3e75a81bd6b51fd937fabf97416
Cr-Commit-Position: refs/heads/master@{#439697}

Powered by Google App Engine
This is Rietveld 408576698