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

Issue 2901083002: [CacheStorage] Pad and bin opaque resource sizes. (Closed)

Created:
3 years, 7 months ago by cmumford
Modified:
3 years, 4 months ago
Reviewers:
jkarlin
CC:
chromium-reviews, jam, darin-cc_chromium.org, jkarlin+watch_chromium.org, nhiroki
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Pad and bin opaque resource sizes. BUG=617963 Review-Url: https://codereview.chromium.org/2901083002 Cr-Commit-Position: refs/heads/master@{#494384} Committed: https://chromium.googlesource.com/chromium/src/+/8421200aab24ddf59dfea7256ccffed8f7a61e0b

Patch Set 1 #

Patch Set 2 : Rebased and resolved conflicts. #

Total comments: 9

Patch Set 3 : Storing padding key in cache. #

Total comments: 16

Patch Set 4 : y #

Total comments: 16

Patch Set 5 : Addressed comments for Patch Set 4. #

Total comments: 2

Patch Set 6 : Creating single padding key per session. #

Total comments: 17

Patch Set 7 : 1) key as string, flags back to enum, & other patch set 6 fixes. #

Patch Set 8 : Padding side data and writing padding alg. version to index. #

Total comments: 44

Patch Set 9 : Patch Set 8 changes. #

Total comments: 33

Patch Set 10 : Patch set 9 changes #

Total comments: 2

Patch Set 11 : s/also also/also/ and EXPECT_GT ↔ EXPECT_LT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+993 lines, -214 lines) Patch
M content/browser/cache_storage/README.md View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 2 3 4 5 6 7 8 9 15 chunks +101 lines, -20 lines 0 comments Download
M content/browser/cache_storage/cache_storage.proto View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.h View 1 2 3 4 5 6 7 8 9 10 13 chunks +68 lines, -10 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 3 4 5 6 7 8 9 10 32 chunks +334 lines, -101 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +148 lines, -21 lines 0 comments Download
M content/browser/cache_storage/cache_storage_index.h View 1 2 3 4 5 6 7 8 5 chunks +42 lines, -9 lines 0 comments Download
M content/browser/cache_storage/cache_storage_index.cc View 1 2 3 4 5 6 7 8 8 chunks +60 lines, -4 lines 0 comments Download
M content/browser/cache_storage/cache_storage_index_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +66 lines, -34 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +141 lines, -11 lines 0 comments Download

Messages

Total messages: 59 (29 generated)
cmumford
jkarlin@ Here's the most basic implementation of response padding. It does not support POST data ...
3 years, 7 months ago (2017-05-24 15:31:28 UTC) #13
cmumford
3 years, 7 months ago (2017-05-24 15:31:49 UTC) #15
jkarlin
A couple initial comments. https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (left): https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#oldcode1085 content/browser/cache_storage/cache_storage_cache.cc:1085: // |rv| is ignored as ...
3 years, 7 months ago (2017-05-26 13:21:26 UTC) #16
cmumford
https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (left): https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#oldcode1085 content/browser/cache_storage/cache_storage_cache.cc:1085: // |rv| is ignored as doom entry can fail ...
3 years, 6 months ago (2017-05-30 20:56:13 UTC) #17
jkarlin
https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#newcode1586 content/browser/cache_storage/cache_storage_cache.cc:1586: CalculateCacheSizePadding(base::Bind(&CacheStorageCache::InitGotCacheSize, On 2017/05/30 20:56:13, cmumford wrote: > Understood. I ...
3 years, 6 months ago (2017-05-31 11:44:48 UTC) #18
jkarlin
https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (left): https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#oldcode1085 content/browser/cache_storage/cache_storage_cache.cc:1085: // |rv| is ignored as doom entry can fail ...
3 years, 6 months ago (2017-05-31 11:47:26 UTC) #19
cmumford
https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (left): https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#oldcode1085 content/browser/cache_storage/cache_storage_cache.cc:1085: // |rv| is ignored as doom entry can fail ...
3 years, 6 months ago (2017-06-08 17:54:05 UTC) #20
jkarlin
https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (left): https://codereview.chromium.org/2901083002/diff/20001/content/browser/cache_storage/cache_storage_cache.cc#oldcode1085 content/browser/cache_storage/cache_storage_cache.cc:1085: // |rv| is ignored as doom entry can fail ...
3 years, 6 months ago (2017-06-08 18:04:02 UTC) #21
jkarlin
Heading out but here is what I have so far. https://codereview.chromium.org/2901083002/diff/40001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/2901083002/diff/40001/content/browser/cache_storage/cache_storage.cc#newcode106 ...
3 years, 6 months ago (2017-06-08 18:58:48 UTC) #22
jkarlin
https://codereview.chromium.org/2901083002/diff/60001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2901083002/diff/60001/content/browser/cache_storage/cache_storage_cache.cc#newcode265 content/browser/cache_storage/cache_storage_cache.cc:265: blink::kWebServiceWorkerResponseTypeOpaque || Let's change this to a switch on ...
3 years, 6 months ago (2017-06-09 15:26:20 UTC) #23
cmumford
https://codereview.chromium.org/2901083002/diff/40001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/2901083002/diff/40001/content/browser/cache_storage/cache_storage.cc#newcode106 content/browser/cache_storage/cache_storage.cc:106: int64_t cache_paddinge, On 2017/06/08 18:58:48, jkarlin wrote: > cache_padding ...
3 years, 6 months ago (2017-06-12 18:09:32 UTC) #24
jkarlin
https://codereview.chromium.org/2901083002/diff/80001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/2901083002/diff/80001/content/browser/cache_storage/cache_storage.cc#newcode65 content/browser/cache_storage/cache_storage.cc:65: std::unique_ptr<SymmetricKey> GeneratePaddingKey() { We want a single key per ...
3 years, 6 months ago (2017-06-13 12:53:35 UTC) #29
cmumford
https://codereview.chromium.org/2901083002/diff/80001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/2901083002/diff/80001/content/browser/cache_storage/cache_storage.cc#newcode65 content/browser/cache_storage/cache_storage.cc:65: std::unique_ptr<SymmetricKey> GeneratePaddingKey() { Doh - of course <sigh>
3 years, 6 months ago (2017-06-13 22:50:42 UTC) #30
jkarlin
https://codereview.chromium.org/2901083002/diff/100001/content/browser/cache_storage/cache_storage.proto File content/browser/cache_storage/cache_storage.proto (right): https://codereview.chromium.org/2901083002/diff/100001/content/browser/cache_storage/cache_storage.proto#newcode16 content/browser/cache_storage/cache_storage.proto:16: optional bytes padding_key = 4; This should be a ...
3 years, 6 months ago (2017-06-15 16:08:35 UTC) #31
cmumford
https://codereview.chromium.org/2901083002/diff/100001/content/browser/cache_storage/cache_storage.proto File content/browser/cache_storage/cache_storage.proto (right): https://codereview.chromium.org/2901083002/diff/100001/content/browser/cache_storage/cache_storage.proto#newcode16 content/browser/cache_storage/cache_storage.proto:16: optional bytes padding_key = 4; On 2017/06/15 16:08:35, jkarlin_OOO ...
3 years, 6 months ago (2017-06-20 18:22:05 UTC) #32
jkarlin
https://codereview.chromium.org/2901083002/diff/100001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2901083002/diff/100001/content/browser/cache_storage/cache_storage_cache.cc#newcode1244 content/browser/cache_storage/cache_storage_cache.cc:1244: cache_padding_ += CalculateResponsePadding(*put_context->response, On 2017/06/20 18:22:04, cmumford wrote: > ...
3 years, 5 months ago (2017-06-26 17:59:19 UTC) #33
cmumford
Also writing the padding algorithm version, so that if we ever decide to change it, ...
3 years, 5 months ago (2017-07-19 23:12:26 UTC) #34
jkarlin
Looking good. https://codereview.chromium.org/2901083002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2901083002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc#newcode290 content/browser/cache_storage/cache_storage_cache.cc:290: // Remove this line https://codereview.chromium.org/2901083002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc#newcode296 content/browser/cache_storage/cache_storage_cache.cc:296: // ...
3 years, 5 months ago (2017-07-21 21:18:10 UTC) #35
cmumford
https://codereview.chromium.org/2901083002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/2901083002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc#newcode290 content/browser/cache_storage/cache_storage_cache.cc:290: // On 2017/07/21 21:18:08, jkarlin wrote: > Remove this ...
3 years, 4 months ago (2017-07-27 23:33:25 UTC) #36
jkarlin
Think we're pretty much there. https://codereview.chromium.org/2901083002/diff/160001/content/browser/cache_storage/README.md File content/browser/cache_storage/README.md (right): https://codereview.chromium.org/2901083002/diff/160001/content/browser/cache_storage/README.md#newcode159 content/browser/cache_storage/README.md:159: Opaque responses may only ...
3 years, 4 months ago (2017-07-31 14:03:25 UTC) #41
cmumford
https://codereview.chromium.org/2901083002/diff/160001/content/browser/cache_storage/README.md File content/browser/cache_storage/README.md (right): https://codereview.chromium.org/2901083002/diff/160001/content/browser/cache_storage/README.md#newcode159 content/browser/cache_storage/README.md:159: Opaque responses may only be cached, and in order ...
3 years, 4 months ago (2017-08-10 16:37:11 UTC) #42
jkarlin
lgtm! Woot! (with some minor comments) https://codereview.chromium.org/2901083002/diff/160001/content/browser/cache_storage/cache_storage_manager_unittest.cc File content/browser/cache_storage/cache_storage_manager_unittest.cc (right): https://codereview.chromium.org/2901083002/diff/160001/content/browser/cache_storage/cache_storage_manager_unittest.cc#newcode1013 content/browser/cache_storage/cache_storage_manager_unittest.cc:1013: EXPECT_GT(cache_size_after_put, 0); On ...
3 years, 4 months ago (2017-08-11 15:04:38 UTC) #43
cmumford
https://codereview.chromium.org/2901083002/diff/180001/content/browser/cache_storage/README.md File content/browser/cache_storage/README.md (right): https://codereview.chromium.org/2901083002/diff/180001/content/browser/cache_storage/README.md#newcode159 content/browser/cache_storage/README.md:159: Opaque responses are also also cached, but in order ...
3 years, 4 months ago (2017-08-11 22:06:33 UTC) #44
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/2901083002/200001
3 years, 4 months ago (2017-08-11 22:06:53 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/241193)
3 years, 4 months ago (2017-08-11 22:43:33 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/2901083002/200001
3 years, 4 months ago (2017-08-14 15:57:16 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/361815)
3 years, 4 months ago (2017-08-14 17:32:30 UTC) #53
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/2901083002/200001
3 years, 4 months ago (2017-08-15 14:03:50 UTC) #55
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/8421200aab24ddf59dfea7256ccffed8f7a61e0b
3 years, 4 months ago (2017-08-15 15:29:54 UTC) #58
Reilly Grant (use Gerrit)
3 years, 4 months ago (2017-08-15 17:32:48 UTC) #59
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/3002693002/ by reillyg@chromium.org.

The reason for reverting is: Crashes in these virtual test suites:

*
virtual/mojo-blobs/external/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html
*
virtual/off-main-thread-fetch/external/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html

https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Linu....

Powered by Google App Engine
This is Rietveld 408576698