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

Issue 2574143003: Implement upload progress handling in Mojo loading (Closed)

Created:
4 years ago by tzik
Modified:
3 years, 11 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, 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, 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

Implement upload progress handling in Mojo loading This CL integrates upload progress events from the browser side loading stack in Mojo to the renderer. BUG=603396 Review-Url: https://codereview.chromium.org/2574143003 Cr-Commit-Position: refs/heads/master@{#445727} Committed: https://chromium.googlesource.com/chromium/src/+/bedcbce4a048c2e6c6eaf7a3cef82eecf85543e9

Patch Set 1 #

Patch Set 2 : +ResourceDispatcher #

Patch Set 3 : update TestExpectations #

Total comments: 4

Patch Set 4 : . #

Patch Set 5 : DEPS & #include #

Patch Set 6 : rebase #

Total comments: 6

Patch Set 7 : rebase, +comment, +#include #

Patch Set 8 : update TestExpectations #

Total comments: 6

Patch Set 9 : rebase on the unittest CL #

Patch Set 10 : rebase #

Patch Set 11 : +test #

Patch Set 12 : rebase #

Patch Set 13 : remove unused fake #

Patch Set 14 : +content_browsertests #

Total comments: 10

Patch Set 15 : wip #

Patch Set 16 : +test case for UploadProgressHandler passes #

Patch Set 17 : fix #

Patch Set 18 : +sanity check. +rewind case test. #

Patch Set 19 : android build fix #

Total comments: 12

Patch Set 20 : +#include. +forward decl. +DISALLOW_COPY_AND_ASSIGN. #

Total comments: 6

Patch Set 21 : s/OnMesnsageReceived/Dispatch/ #

Total comments: 2

Patch Set 22 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -33 lines) Patch
M content/browser/loader/DEPS 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, -2 lines 0 comments Download
M content/browser/loader/async_resource_handler_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +16 lines, -3 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 5 chunks +17 lines, -4 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 8 chunks +46 lines, -3 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 15 chunks +155 lines, -9 lines 0 comments Download
M content/browser/loader/test_url_loader_client.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 +15 lines, -0 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 15 16 17 18 19 20 21 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/loader/upload_progress_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 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 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +5 lines, -0 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 1 chunk +6 lines, -2 lines 0 comments Download
M content/child/url_loader_client_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/url_loader_client_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 +8 lines, -0 lines 0 comments Download
M content/common/url_loader.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +6 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 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 119 (90 generated)
yhirano
https://codereview.chromium.org/2574143003/diff/40001/content/browser/loader/DEPS File content/browser/loader/DEPS (right): https://codereview.chromium.org/2574143003/diff/40001/content/browser/loader/DEPS#newcode97 content/browser/loader/DEPS:97: "+content/browser/loader/test_url_loader_client.h", Hmm, I think mojo_async_resource_handler.(cc|h) should not include test_url_loader_client.h ...
4 years ago (2016-12-15 06:21:25 UTC) #15
tzik
https://codereview.chromium.org/2574143003/diff/40001/content/browser/loader/DEPS File content/browser/loader/DEPS (right): https://codereview.chromium.org/2574143003/diff/40001/content/browser/loader/DEPS#newcode97 content/browser/loader/DEPS:97: "+content/browser/loader/test_url_loader_client.h", On 2016/12/15 06:21:25, yhirano wrote: > Hmm, I ...
4 years ago (2016-12-16 03:49:13 UTC) #25
yhirano
Talked offline w/tzik@ about testing. He will write unittests for UploadProgressTracker separately. MojoAsyncResourceHandler implementation is ...
4 years ago (2016-12-16 08:47:56 UTC) #27
tzik
https://codereview.chromium.org/2574143003/diff/100001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2574143003/diff/100001/content/browser/loader/mojo_async_resource_handler.cc#newcode7 content/browser/loader/mojo_async_resource_handler.cc:7: #include <algorithm> On 2016/12/16 08:47:56, yhirano wrote: > Why ...
3 years, 11 months ago (2017-01-05 05:14:33 UTC) #32
tzik
Adding mmenke and nhiroki. PTAL to nhiroki: service_worker code. mmenke: //content/browser/loader
3 years, 11 months ago (2017-01-05 10:53:19 UTC) #37
mmenke
Seems like we should have tests for this, otherwise, looks really good. https://codereview.chromium.org/2574143003/diff/140001/content/browser/loader/test_url_loader_client.cc File content/browser/loader/test_url_loader_client.cc ...
3 years, 11 months ago (2017-01-05 16:31:20 UTC) #40
nhiroki
service worker lgtm https://codereview.chromium.org/2574143003/diff/140001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2574143003/diff/140001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode87 content/browser/service_worker/service_worker_fetch_dispatcher.cc:87: void OnUploadProgress(int64_t current_position, nit: Can you ...
3 years, 11 months ago (2017-01-06 05:30:09 UTC) #41
tzik
https://codereview.chromium.org/2574143003/diff/140001/content/browser/loader/test_url_loader_client.cc File content/browser/loader/test_url_loader_client.cc (right): https://codereview.chromium.org/2574143003/diff/140001/content/browser/loader/test_url_loader_client.cc#newcode56 content/browser/loader/test_url_loader_client.cc:56: ack_callback.Run(); On 2017/01/05 16:31:20, mmenke wrote: > No tests ...
3 years, 11 months ago (2017-01-18 12:56:43 UTC) #60
mmenke
https://codereview.chromium.org/2574143003/diff/260001/content/browser/loader/async_resource_handler_browsertest.cc File content/browser/loader/async_resource_handler_browsertest.cc (right): https://codereview.chromium.org/2574143003/diff/260001/content/browser/loader/async_resource_handler_browsertest.cc#newcode74 content/browser/loader/async_resource_handler_browsertest.cc:74: "LoadingWithMojo"); nit: Add braces. (And good job noticing we ...
3 years, 11 months ago (2017-01-18 17:00:47 UTC) #63
tzik
https://codereview.chromium.org/2574143003/diff/260001/content/browser/loader/async_resource_handler_browsertest.cc File content/browser/loader/async_resource_handler_browsertest.cc (right): https://codereview.chromium.org/2574143003/diff/260001/content/browser/loader/async_resource_handler_browsertest.cc#newcode74 content/browser/loader/async_resource_handler_browsertest.cc:74: "LoadingWithMojo"); On 2017/01/18 17:00:46, mmenke wrote: > nit: Add ...
3 years, 11 months ago (2017-01-19 11:53:09 UTC) #78
mmenke
LGTM https://codereview.chromium.org/2574143003/diff/360001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2574143003/diff/360001/content/browser/loader/mojo_async_resource_handler.cc#newcode205 content/browser/loader/mojo_async_resource_handler.cc:205: FROM_HERE, nit: Pre-existing issue, but should include location.h ...
3 years, 11 months ago (2017-01-19 16:06:49 UTC) #81
tzik
https://codereview.chromium.org/2574143003/diff/360001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2574143003/diff/360001/content/browser/loader/mojo_async_resource_handler.cc#newcode205 content/browser/loader/mojo_async_resource_handler.cc:205: FROM_HERE, On 2017/01/19 16:06:49, mmenke wrote: > nit: Pre-existing ...
3 years, 11 months ago (2017-01-20 04:42:03 UTC) #84
tzik
+dcheng & kinuko for OWNER review. PTAL to: kinuko: //content/child dcheng: *.mojom
3 years, 11 months ago (2017-01-23 07:53:16 UTC) #87
yhirano
On 2017/01/23 07:53:16, tzik wrote: > +dcheng & kinuko for OWNER review. PTAL to: > ...
3 years, 11 months ago (2017-01-23 07:55:32 UTC) #88
kinuko
https://codereview.chromium.org/2574143003/diff/380001/content/child/url_loader_client_impl.cc File content/child/url_loader_client_impl.cc (right): https://codereview.chromium.org/2574143003/diff/380001/content/child/url_loader_client_impl.cc#newcode184 content/child/url_loader_client_impl.cc:184: resource_dispatcher_->OnMessageReceived( Could we / should we use Dispatch() instead?
3 years, 11 months ago (2017-01-23 08:23:03 UTC) #90
kinuko
https://codereview.chromium.org/2574143003/diff/380001/content/browser/loader/mojo_async_resource_handler.h File content/browser/loader/mojo_async_resource_handler.h (right): https://codereview.chromium.org/2574143003/diff/380001/content/browser/loader/mojo_async_resource_handler.h#newcode107 content/browser/loader/mojo_async_resource_handler.h:107: // These function can be overriden only for tests. ...
3 years, 11 months ago (2017-01-23 08:28:09 UTC) #91
tzik
On 2017/01/23 07:55:32, yhirano wrote: > On 2017/01/23 07:53:16, tzik wrote: > > +dcheng & ...
3 years, 11 months ago (2017-01-23 09:13:13 UTC) #92
tzik
+dcheng for *.mojom OWNER review. PTAL. https://codereview.chromium.org/2574143003/diff/380001/content/browser/loader/mojo_async_resource_handler.h File content/browser/loader/mojo_async_resource_handler.h (right): https://codereview.chromium.org/2574143003/diff/380001/content/browser/loader/mojo_async_resource_handler.h#newcode107 content/browser/loader/mojo_async_resource_handler.h:107: // These function ...
3 years, 11 months ago (2017-01-23 09:34:17 UTC) #96
kinuko
lgtm
3 years, 11 months ago (2017-01-23 10:43:56 UTC) #97
dcheng
mojo lgtm (question is just to help me understand the code) https://codereview.chromium.org/2574143003/diff/400001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): ...
3 years, 11 months ago (2017-01-24 10:38:58 UTC) #100
tzik
https://codereview.chromium.org/2574143003/diff/400001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2574143003/diff/400001/content/browser/loader/mojo_async_resource_handler.cc#newcode365 content/browser/loader/mojo_async_resource_handler.cc:365: upload_progress_tracker_ = nullptr; On 2017/01/24 10:38:58, dcheng wrote: > ...
3 years, 11 months ago (2017-01-24 12:04:59 UTC) #101
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/2574143003/420001
3 years, 11 months ago (2017-01-24 12:05:58 UTC) #104
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/296851)
3 years, 11 months ago (2017-01-24 12:38:27 UTC) #106
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/2574143003/420001
3 years, 11 months ago (2017-01-24 12:42:52 UTC) #108
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/296879)
3 years, 11 months ago (2017-01-24 13:14:00 UTC) #110
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/2574143003/420001
3 years, 11 months ago (2017-01-24 13:15:00 UTC) #112
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/296895)
3 years, 11 months ago (2017-01-24 13:47:35 UTC) #114
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/2574143003/420001
3 years, 11 months ago (2017-01-24 15:04:17 UTC) #116
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 15:08:45 UTC) #119
Message was sent while issue was closed.
Committed patchset #22 (id:420001) as
https://chromium.googlesource.com/chromium/src/+/bedcbce4a048c2e6c6eaf7a3cef8...

Powered by Google App Engine
This is Rietveld 408576698