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

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)

Created:
4 years ago by yhirano
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, extensions-reviews_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, loading-reviews+fetch_chromium.org, mlamouri+watch-content_chromium.org, Paweł Hajdan Jr., tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dispatch encoded_data_length separately in content/child This CL removes dispatching encoded_data_length from RequestPeer::ReceivedData. Instead, it is dispatched via RequestPeer::OnTransferSizeUpdated. BUG=666217 Committed: https://crrev.com/48f3e047d17e5f78543bb0bec1c421ba3a69cb79 Cr-Commit-Position: refs/heads/master@{#437433}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : fix #

Patch Set 5 : rebase #

Patch Set 6 : done #

Patch Set 7 : fix #

Total comments: 4

Patch Set 8 : fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -309 lines) Patch
M chrome/renderer/extensions/extension_localization_peer.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_localization_peer.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_localization_peer_unittest.cc View 7 chunks +11 lines, -14 lines 0 comments Download
M chrome/renderer/security_filter_peer.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/security_filter_peer.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M content/child/ftp_directory_listing_response_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 4 chunks +9 lines, -3 lines 0 comments Download
M content/child/shared_memory_data_consumer_handle.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/child/shared_memory_data_consumer_handle_unittest.cc View 2 chunks +1 line, -5 lines 0 comments Download
M content/child/shared_memory_received_data_factory.h View 1 chunk +1 line, -3 lines 0 comments Download
M content/child/shared_memory_received_data_factory.cc View 3 chunks +2 lines, -9 lines 0 comments Download
M content/child/shared_memory_received_data_factory_unittest.cc View 5 chunks +19 lines, -20 lines 0 comments Download
M content/child/url_response_body_consumer.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/child/url_response_body_consumer_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 7 chunks +13 lines, -3 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M content/public/child/fixed_received_data.h View 1 chunk +2 lines, -4 lines 0 comments Download
M content/public/child/fixed_received_data.cc View 2 chunks +5 lines, -14 lines 0 comments Download
M content/public/child/request_peer.h View 1 2 chunks +7 lines, -6 lines 0 comments Download
M content/renderer/fetchers/resource_fetcher_impl.cc View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/tracing/resources/anImage.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/tracing/resources/anotherImage.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/tracing/resources/timeline-network-resource.js View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data-expected.txt View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 2 comments Download
D third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -64 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event-expected.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data.html View 1 2 3 4 5 1 chunk +0 lines, -46 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.js View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 10 chunks +7 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp View 4 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimNetwork.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimRequest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebURLLoaderClient.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h View 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 57 (41 generated)
yhirano
4 years ago (2016-12-06 06:53:38 UTC) #15
tzik
lgtm https://codereview.chromium.org/2540023003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2540023003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode10480 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:10480: int dataLength) { override?
4 years ago (2016-12-06 11:31:19 UTC) #16
kinuko
lgtm https://codereview.chromium.org/2540023003/diff/40001/content/public/child/request_peer.h File content/public/child/request_peer.h (right): https://codereview.chromium.org/2540023003/diff/40001/content/public/child/request_peer.h#newcode88 content/public/child/request_peer.h:88: virtual void OnTransferSizeUpdated(int transfer_size_diff) = 0; Should transfer_size_diff ...
4 years ago (2016-12-07 04:06:27 UTC) #18
kinuko
nit: 'Instaed' in the CL description -> Instead
4 years ago (2016-12-07 04:11:53 UTC) #19
yhirano
> nit: 'Instaed' in the CL description -> Instead Done. https://codereview.chromium.org/2540023003/diff/40001/content/public/child/request_peer.h File content/public/child/request_peer.h (right): https://codereview.chromium.org/2540023003/diff/40001/content/public/child/request_peer.h#newcode88 ...
4 years ago (2016-12-07 12:06:58 UTC) #24
yhirano
+jochen@ for chrome/ changes.
4 years ago (2016-12-07 12:07:29 UTC) #26
jochen (gone - plz use gerrit)
chrome/ lgtm
4 years ago (2016-12-07 15:38:37 UTC) #31
yhirano
+dgozman@ for layout test changes. With this CL, WebURLLoader dispatches only positive encoded_data_length. I think ...
4 years ago (2016-12-07 16:12:30 UTC) #36
yhirano
+dgozman@ for layout test changes. With this CL, WebURLLoader dispatches only positive encoded_data_length. I think ...
4 years ago (2016-12-07 16:13:01 UTC) #38
dgozman
> With this CL, WebURLLoader dispatches only positive encoded_data_length. I think > it's reasonable because ...
4 years ago (2016-12-07 19:43:49 UTC) #41
yhirano
https://codereview.chromium.org/2540023003/diff/120001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2540023003/diff/120001/third_party/WebKit/LayoutTests/TestExpectations#newcode1625 third_party/WebKit/LayoutTests/TestExpectations:1625: crbug.com/669357 virtual/mojo-loading/http/tests/inspector/tracing/timeline-network-received-data.html [ Failure ] On 2016/12/07 19:43:49, dgozman ...
4 years ago (2016-12-08 13:38:42 UTC) #47
dgozman
lgtm https://codereview.chromium.org/2540023003/diff/140001/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt (right): https://codereview.chromium.org/2540023003/diff/140001/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt#newcode6 third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt:6: ResourceReceivedData Why there are two now?
4 years ago (2016-12-08 19:37:53 UTC) #48
yhirano
https://codereview.chromium.org/2540023003/diff/140001/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt File third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt (right): https://codereview.chromium.org/2540023003/diff/140001/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt#newcode6 third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event-expected.txt:6: ResourceReceivedData On 2016/12/08 19:37:53, dgozman wrote: > Why there ...
4 years ago (2016-12-09 02:02:54 UTC) #49
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/2540023003/140001
4 years ago (2016-12-09 02:03:56 UTC) #52
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-09 02:19:47 UTC) #55
commit-bot: I haz the power
4 years ago (2016-12-09 02:22:59 UTC) #57
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/48f3e047d17e5f78543bb0bec1c421ba3a69cb79
Cr-Commit-Position: refs/heads/master@{#437433}

Powered by Google App Engine
This is Rietveld 408576698