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

Issue 2629513003: Implement CachedMetadata handling on MojoAsyncResourceHandler (Closed)

Created:
3 years, 11 months ago by yhirano
Modified:
3 years, 11 months ago
Reviewers:
tzik, jam, dcheng, yzshen1, horo, mmenke
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, 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 CachedMetadata handling on MojoAsyncResourceHandler With this CL, MojoAsyncResourcehandler dispatches the cached metadata if it is attached with the net::URLRequest. BUG=603396 Review-Url: https://codereview.chromium.org/2629513003 Cr-Commit-Position: refs/heads/master@{#444302} Committed: https://chromium.googlesource.com/chromium/src/+/2a525f9d4ab7f144b179ed013482e3ec98dfd6d0

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 2

Patch Set 4 : fix #

Patch Set 5 : rebase #

Total comments: 21

Patch Set 6 : fix #

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -8 lines) Patch
M content/browser/loader/mojo_async_resource_handler.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler_unittest.cc View 1 2 3 4 5 10 chunks +23 lines, -8 lines 0 comments Download
M content/browser/loader/test_url_loader_client.h View 1 2 3 4 5 5 chunks +12 lines, -0 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 2 3 4 5 6 4 chunks +27 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/test_request_peer.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M content/child/test_request_peer.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/child/url_loader_client_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/url_loader_client_impl.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M content/child/url_loader_client_impl_unittest.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M content/common/url_loader.mojom View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (33 generated)
yhirano
3 years, 11 months ago (2017-01-12 07:06:21 UTC) #6
tzik
lgtm https://codereview.chromium.org/2629513003/diff/40001/content/browser/loader/mojo_async_resource_handler_unittest.cc File content/browser/loader/mojo_async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2629513003/diff/40001/content/browser/loader/mojo_async_resource_handler_unittest.cc#newcode252 content/browser/loader/mojo_async_resource_handler_unittest.cc:252: metadata_ = metadata; std::move()
3 years, 11 months ago (2017-01-13 02:41:23 UTC) #11
yhirano
https://codereview.chromium.org/2629513003/diff/40001/content/browser/loader/mojo_async_resource_handler_unittest.cc File content/browser/loader/mojo_async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2629513003/diff/40001/content/browser/loader/mojo_async_resource_handler_unittest.cc#newcode252 content/browser/loader/mojo_async_resource_handler_unittest.cc:252: metadata_ = metadata; On 2017/01/13 02:41:23, tzik wrote: > ...
3 years, 11 months ago (2017-01-13 12:36:13 UTC) #14
yhirano
+mmenke@ for content/browser/loader +horo@ for content/browser/service_worker and content/renderer/service_worker +dcheng@ for content/common/url_loader.mojom +jam@ for content overall
3 years, 11 months ago (2017-01-13 12:56:13 UTC) #20
mmenke
Quick comment. I'll do a more thorough review this afternoon. https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc#newcode190 ...
3 years, 11 months ago (2017-01-13 15:55:04 UTC) #23
yhirano
On 2017/01/13 15:55:04, mmenke wrote: > Quick comment. I'll do a more thorough review this ...
3 years, 11 months ago (2017-01-13 16:14:25 UTC) #26
jam
lgtm
3 years, 11 months ago (2017-01-13 23:12:00 UTC) #27
dcheng
https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc#newcode190 content/browser/loader/mojo_async_resource_handler.cc:190: std::vector<uint8_t>(ptr, ptr + metadata->size())); On 2017/01/13 15:55:04, mmenke wrote: ...
3 years, 11 months ago (2017-01-14 11:30:17 UTC) #28
horo
service_worker/ LGTM
3 years, 11 months ago (2017-01-16 01:48:16 UTC) #29
yhirano
https://codereview.chromium.org/2629513003/diff/70001/content/child/url_loader_client_impl.cc File content/child/url_loader_client_impl.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/child/url_loader_client_impl.cc#newcode141 content/child/url_loader_client_impl.cc:141: request_id_, std::vector<char>(ptr, ptr + data.size()))); On 2017/01/14 11:30:17, dcheng ...
3 years, 11 months ago (2017-01-16 05:25:46 UTC) #30
yhirano
https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc#newcode190 content/browser/loader/mojo_async_resource_handler.cc:190: std::vector<uint8_t>(ptr, ptr + metadata->size())); On 2017/01/14 11:30:17, dcheng wrote: ...
3 years, 11 months ago (2017-01-16 05:40:41 UTC) #31
mmenke
LGTM! https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc#newcode187 content/browser/loader/mojo_async_resource_handler.cc:187: const uint8_t* ptr = reinterpret_cast<const uint8_t*>(metadata->data()); nit: Maybe ...
3 years, 11 months ago (2017-01-17 18:39:57 UTC) #32
mmenke
https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc#newcode191 content/browser/loader/mojo_async_resource_handler.cc:191: } Also, include <vector> (Same probably goes for both ...
3 years, 11 months ago (2017-01-17 18:40:52 UTC) #33
dcheng
mojo lgtm with a nit. hopefully we can make this more efficient with the right ...
3 years, 11 months ago (2017-01-18 00:23:53 UTC) #34
yhirano
https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2629513003/diff/70001/content/browser/loader/mojo_async_resource_handler.cc#newcode187 content/browser/loader/mojo_async_resource_handler.cc:187: const uint8_t* ptr = reinterpret_cast<const uint8_t*>(metadata->data()); On 2017/01/17 18:39:57, ...
3 years, 11 months ago (2017-01-18 06:22:43 UTC) #37
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/2629513003/90001
3 years, 11 months ago (2017-01-18 06:23:03 UTC) #41
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/2629513003/110001
3 years, 11 months ago (2017-01-18 06:50:36 UTC) #48
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 08:17:22 UTC) #51
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/2a525f9d4ab7f144b179ed013482...

Powered by Google App Engine
This is Rietveld 408576698