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

Issue 1915833002: Introduce Platform::cacheMetadataInCacheStorage() to store V8 code cache in CacheStorage (Closed)

Created:
4 years, 8 months ago by horo
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, falken, gavinp+loader_chromium.org, haraken, horo+watch_chromium.org, jam, Nate Chapin, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, loading-reviews+fetch_chromium.org, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nhiroki, serviceworker-reviews, tyoshino+watch_chromium.org, tzik, Yang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce Platform::cacheMetadataInCacheStorage() to store V8 code cache in CacheStorage We will introduce v8-cache-strategies-for-cache-storage flag (none, normal and aggressive) in https://codereview.chromium.org/1914963002/. The flag will be used to call WebSettings::setV8CacheStrategiesForCacheStorage(). - When the flag is "none", we don't store the V8 code cache in CacheStorage. - When the flag is "normal", V8 code cache will be stored when the script is loaded twice in 72 hours. This behavior is same as V8 code cache in HTTPCache and implemented in V8ScriptRunner. - When the flag is "aggressive", V8 code cache will be stored when the script is loaded for the first time. BUG=581613 Committed: https://crrev.com/244fe932fce068141e9c52c9f8969b57eb6ccf8c Cr-Commit-Position: refs/heads/master@{#392522}

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : incorporated vogelheim's comment #

Total comments: 3

Patch Set 4 : use V8CacheOptionsCode #

Patch Set 5 : add comments in render_process_messages.h #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -84 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 5 chunks +23 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 7 chunks +42 lines, -1 line 2 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 chunk +10 lines, -11 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/render_process_messages.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8CacheOptions.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/V8CacheStrategiesForCacheStorage.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/v8.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 9 chunks +111 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 24 (11 generated)
horo
jochen@ Could you please review this?
4 years, 8 months ago (2016-04-25 09:26:20 UTC) #5
jochen (gone - plz use gerrit)
Daniel, can you review this? Happy to rubberstamp afterwards. https://codereview.chromium.org/1915833002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8CacheStrategiesForCacheStorage.h File third_party/WebKit/Source/bindings/core/v8/V8CacheStrategiesForCacheStorage.h (right): https://codereview.chromium.org/1915833002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8CacheStrategiesForCacheStorage.h#newcode10 third_party/WebKit/Source/bindings/core/v8/V8CacheStrategiesForCacheStorage.h:10: ...
4 years, 7 months ago (2016-04-27 13:21:04 UTC) #7
vogelheim
I'm happy with what this does, but not how. The problem I have is centered ...
4 years, 7 months ago (2016-04-27 18:16:36 UTC) #8
horo
vogelheim@ I uploaded Patch Set 3. ScriptController::executeScriptAndReturnValue() sets v8CacheOptions when the resource is from CacheStorage. ...
4 years, 7 months ago (2016-04-30 05:30:41 UTC) #9
vogelheim
lgtm I like this version better. Thank you for doing the extra work. I found ...
4 years, 7 months ago (2016-05-03 11:36:05 UTC) #11
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-03 11:37:29 UTC) #12
horo
https://codereview.chromium.org/1915833002/diff/60001/content/browser/renderer_host/render_view_host_unittest.cc File content/browser/renderer_host/render_view_host_unittest.cc (right): https://codereview.chromium.org/1915833002/diff/60001/content/browser/renderer_host/render_view_host_unittest.cc#newcode256 content/browser/renderer_host/render_view_host_unittest.cc:256: nullptr) { On 2016/05/03 11:36:05, vogelheim wrote: > The ...
4 years, 7 months ago (2016-05-09 04:00:04 UTC) #13
horo
mkwst@ Could you please review content/common/render_process_messages.h?
4 years, 7 months ago (2016-05-09 04:06:46 UTC) #15
Mike West
IPC LGTM % sanity check question. https://codereview.chromium.org/1915833002/diff/120001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): https://codereview.chromium.org/1915833002/diff/120001/content/browser/renderer_host/render_message_filter.cc#newcode581 content/browser/renderer_host/render_message_filter.cc:581: scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(data.size())); ...
4 years, 7 months ago (2016-05-09 18:48:49 UTC) #16
horo
Thank you! https://codereview.chromium.org/1915833002/diff/120001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): https://codereview.chromium.org/1915833002/diff/120001/content/browser/renderer_host/render_message_filter.cc#newcode581 content/browser/renderer_host/render_message_filter.cc:581: scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(data.size())); On 2016/05/09 18:48:48, Mike ...
4 years, 7 months ago (2016-05-10 01:15:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915833002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915833002/120001
4 years, 7 months ago (2016-05-10 01:16:30 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 7 months ago (2016-05-10 02:28:03 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 02:29:19 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/244fe932fce068141e9c52c9f8969b57eb6ccf8c
Cr-Commit-Position: refs/heads/master@{#392522}

Powered by Google App Engine
This is Rietveld 408576698