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

Issue 1751833002: Use string16 for cache_name in the back end of CacheStorage. (Closed)

Created:
4 years, 9 months ago by horo
Modified:
4 years, 6 months ago
Reviewers:
jkarlin, jsbell, nhiroki
CC:
chromium-reviews, blink-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use string16 for cache_name in the back end of CacheStorage. BUG=432746

Patch Set 1 : #

Total comments: 9

Patch Set 2 : add comment and test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -91 lines) Patch
M content/browser/cache_storage/cache_storage.h View 7 chunks +16 lines, -15 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 31 chunks +55 lines, -38 lines 0 comments Download
M content/browser/cache_storage/cache_storage.proto View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.h View 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.cc View 7 chunks +6 lines, -12 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.h View 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 7 chunks +11 lines, -7 lines 0 comments Download
M content/browser/cache_storage/cache_storage_unittest.cc View 1 5 chunks +51 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/serviceworker/cache-storage-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-storage-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/worker/cache-storage-expected.txt View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (6 generated)
horo
nhiroki@ Could you please review this?
4 years, 9 months ago (2016-03-02 03:47:10 UTC) #5
nhiroki
https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc#newcode289 content/browser/cache_storage/cache_storage.cc:289: // TODO(horo): Depricate |name| when M51 become stable. s/become/becomes/ ...
4 years, 9 months ago (2016-03-02 05:43:13 UTC) #6
horo
https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc#newcode289 content/browser/cache_storage/cache_storage.cc:289: // TODO(horo): Depricate |name| when M51 become stable. On ...
4 years, 9 months ago (2016-03-02 08:35:27 UTC) #8
nhiroki
https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc#newcode359 content/browser/cache_storage/cache_storage.cc:359: if (cache.has_name_utf16()) { On 2016/03/02 08:35:27, horo wrote: > ...
4 years, 9 months ago (2016-03-02 09:22:58 UTC) #9
jkarlin
Drive by comment: The browser normally uses UTF8. How about we keep the UTF8 in ...
4 years, 9 months ago (2016-03-02 14:32:01 UTC) #11
jsbell
On 2016/03/02 14:32:01, jkarlin wrote: > Drive by comment: > > The browser normally uses ...
4 years, 9 months ago (2016-03-02 17:43:35 UTC) #12
jkarlin
On 2016/03/02 14:32:01, jkarlin wrote: > Drive by comment: > > The browser normally uses ...
4 years, 9 months ago (2016-03-02 21:07:08 UTC) #13
horo
On 2016/03/02 21:07:08, jkarlin wrote: > On 2016/03/02 14:32:01, jkarlin wrote: > > Drive by ...
4 years, 9 months ago (2016-03-03 04:53:45 UTC) #14
jkarlin
On 2016/03/03 04:53:45, horo wrote: > On 2016/03/02 21:07:08, jkarlin wrote: > > On 2016/03/02 ...
4 years, 9 months ago (2016-03-03 13:10:24 UTC) #15
horo
On 2016/03/03 13:10:24, jkarlin wrote: > On 2016/03/03 04:53:45, horo wrote: > > On 2016/03/02 ...
4 years, 9 months ago (2016-03-04 03:38:24 UTC) #16
horo
https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/1751833002/diff/40001/content/browser/cache_storage/cache_storage.cc#newcode359 content/browser/cache_storage/cache_storage.cc:359: if (cache.has_name_utf16()) { On 2016/03/02 09:22:58, nhiroki (ooo) wrote: ...
4 years, 9 months ago (2016-03-04 03:49:14 UTC) #17
jkarlin
Hmm, BackgroundSync has the same issue (tag is a DOMString) and we're currently using utf8 ...
4 years, 9 months ago (2016-03-04 16:14:42 UTC) #18
horo
On 2016/03/04 16:14:42, jkarlin wrote: > Hmm, BackgroundSync has the same issue (tag is a ...
4 years, 9 months ago (2016-03-07 08:57:14 UTC) #19
jkarlin
Code looks good, thanks for doing this. We're going to lose existing caches that contain ...
4 years, 9 months ago (2016-03-07 14:36:35 UTC) #20
jkarlin
4 years, 9 months ago (2016-03-07 14:37:15 UTC) #21
On 2016/03/07 14:36:35, jkarlin wrote:
> Code looks good, thanks for doing this.
> 
> We're going to lose existing caches that contain \uFFFD characters. Do we have
a
> sense for how many of those there are?
> 
> When trying to open a cache we could check if converting the utf8 cache name
to
> 16 and strict-mode back to 8 results in an already existing cache name. If so
we
> could migrate that cache to the lenient utf8 name though there is risk of
error.

Sorry, posted this on the wrong CL. Meant for
https://codereview.chromium.org/1768063002/.

Powered by Google App Engine
This is Rietveld 408576698