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

Issue 1738723002: Pipe response_time from FetchManager to CacheStorage and ServiceWorkerURLRequestJob. (Closed)

Created:
4 years, 9 months ago by horo
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, horo+watch_chromium.org, jam, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pipe response_time from FetchManager to CacheStorage and ServiceWorkerURLRequestJob. Currently response_time is used to identify the response in HttpCache when storing the V8 code cache to HttpCache. We are planning to support the V8 code caching in CacheStorage. To support this, we have to pipe the response_time from FetchManager to CacheStorage and ServiceWorkerURLRequestJob. Design doc: https://docs.google.com/document/d/1dVlgbXls-G65koU2vlmAXy1EVsoY9Z55jaEX7cZgfDA BUG=581613 Committed: https://crrev.com/3fbfbe6e7690dd2b169cfaaae2ad7ac89537d74b Cr-Commit-Position: refs/heads/master@{#377862}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : pass base::Time by value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -26 lines) Patch
M content/browser/cache_storage/cache_storage.proto View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 2 chunks +26 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/cache_storage/cache_storage_dispatcher.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
A content/test/data/service_worker/fetch_event_response_via_cache.js View 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebServiceWorkerResponse.cpp View 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponse.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
horo
nhiroki@ Could you please review this?
4 years, 9 months ago (2016-02-25 06:14:18 UTC) #5
nhiroki
LGTM (In CL description) s/storeing/storing/
4 years, 9 months ago (2016-02-25 07:40:08 UTC) #6
horo
On 2016/02/25 07:40:08, nhiroki wrote: > LGTM > > (In CL description) s/storeing/storing/ Done. Thank ...
4 years, 9 months ago (2016-02-25 07:42:36 UTC) #8
horo
junov@chromium.org: Please review changes in Could you please review third_party/WebKit/Source/platform/exported/WebServiceWorkerResponse.cpp?
4 years, 9 months ago (2016-02-25 07:44:27 UTC) #10
horo
dcheng@ Could you please review content/common/service_worker/service_worker_messages.h?
4 years, 9 months ago (2016-02-25 08:14:47 UTC) #12
dcheng
ipc lgtm https://codereview.chromium.org/1738723002/diff/40001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/1738723002/diff/40001/content/common/service_worker/service_worker_types.h#newcode165 content/common/service_worker/service_worker_types.h:165: const base::Time& response_time); Nit: I believe we ...
4 years, 9 months ago (2016-02-25 18:43:53 UTC) #13
horo
Thank you! https://codereview.chromium.org/1738723002/diff/40001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/1738723002/diff/40001/content/common/service_worker/service_worker_types.h#newcode165 content/common/service_worker/service_worker_types.h:165: const base::Time& response_time); On 2016/02/25 18:43:53, dcheng ...
4 years, 9 months ago (2016-02-26 02:29:57 UTC) #14
horo
mkwst@ Could you please review third_party/WebKit/Source/platform/exported/WebServiceWorkerResponse.cpp?
4 years, 9 months ago (2016-02-26 05:10:35 UTC) #16
Mike West
LGTM.
4 years, 9 months ago (2016-02-26 08:35:08 UTC) #18
horo
Thank you
4 years, 9 months ago (2016-02-26 08:55:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738723002/60001
4 years, 9 months ago (2016-02-26 08:55:29 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 9 months ago (2016-02-26 10:06:28 UTC) #24
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/3fbfbe6e7690dd2b169cfaaae2ad7ac89537d74b Cr-Commit-Position: refs/heads/master@{#377862}
4 years, 9 months ago (2016-02-26 10:07:44 UTC) #26
aelias_OOO_until_Jul13
4 years, 9 months ago (2016-02-27 00:31:36 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:60001) has been created in
https://codereview.chromium.org/1746483002/ by aelias@chromium.org.

The reason for reverting is: The newly added test FetchEvent_ResponseTime is
~33% flaky on Android, see http://crbug.com/590400.  The error message is
"[FATAL:weak_ptr.cc(20)] Check failed:
sequence_checker_.CalledOnValidSequencedThread() || HasOneRef(). WeakPtrs must
be invalidated on the same sequenced thread."

BUG=590400.

Powered by Google App Engine
This is Rietveld 408576698