Bug 175885

Summary: [CacheAPI] Introduce a WebKit::CacheStorage namespace
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebCore Misc.Assignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, buildbot, cdumez, cgarcia, commit-queue, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing none

Description youenn fablet 2017-08-23 09:18:06 PDT
This will allow splitting CacheStorageEngine implementation in smaller more manageable files
Comment 1 youenn fablet 2017-08-23 09:36:42 PDT
Created attachment 318877 [details]
Patch
Comment 2 Alex Christensen 2017-08-23 10:26:03 PDT
Comment on attachment 318877 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=318877&action=review

> Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.h:37
> +    uint64_t identifier;

This could have a default initializer, too.
Comment 3 youenn fablet 2017-08-23 10:31:15 PDT
Created attachment 318883 [details]
Patch for landing
Comment 4 youenn fablet 2017-08-23 10:31:29 PDT
Thanks for the review.

(In reply to Alex Christensen from comment #2)
> Comment on attachment 318877 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=318877&action=review
> 
> > Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.h:37
> > +    uint64_t identifier;
> 
> This could have a default initializer, too.

Done
Comment 5 Geoffrey Garen 2017-08-23 10:39:43 PDT
Comment on attachment 318877 [details]
Patch

Can we make this a sub-namespace of WebCore so we don't have to Webcore::?
Comment 6 youenn fablet 2017-08-23 10:51:52 PDT
(In reply to Geoffrey Garen from comment #5)
> Comment on attachment 318877 [details]
> Patch
> 
> Can we make this a sub-namespace of WebCore so we don't have to Webcore::?

I plan to unify WebCore CacheStorageConnection and WebKit CacheStorageEngine declarations.
That will probably mean doing what you suggest.

WebCore has a CacheStorage class so we might want to pick a different name for this namespace.
Not sure what is best here, maybe CacheAPI?
Comment 7 Geoffrey Garen 2017-08-23 10:57:12 PDT
> WebCore has a CacheStorage class so we might want to pick a different name
> for this namespace.
> Not sure what is best here, maybe CacheAPI?

Maybe DOMCache? We often prefix generic DOM API names with "DOM". Search for files beginning with "DOM" and you'll see lots of examples. DOMMatrix, DOMURL, DOMWindow, etc.
Comment 8 WebKit Commit Bot 2017-08-23 10:58:04 PDT
Comment on attachment 318883 [details]
Patch for landing

Rejecting attachment 318883 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 318883, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
    -> origin/master
Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ...
Currently at 221084 = 1903c78e15a8e72758925da3b9f7b04e15f94b25
r221085 = ec9d3e1d36d094891e4287fa2d96a4ddf080ea68
r221086 = a480fc02bee91b1bdb9c7aa0abdc6e3089431179
Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc
First, rewinding head to replay your work on top of it...
Fast-forwarded master to refs/remotes/origin/master.

Full output: http://webkit-queues.webkit.org/results/4369417
Comment 9 youenn fablet 2017-08-23 11:02:41 PDT
DOMCache seems good to me.
Comment 10 WebKit Commit Bot 2017-08-23 11:03:17 PDT
Comment on attachment 318883 [details]
Patch for landing

Rejecting attachment 318883 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 318883, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:

patching file Source/WebKit/NetworkProcess/cache/CacheStorageEngineConnection.cpp
patching file Source/WebKit/WebKit.xcodeproj/project.pbxproj
patching file Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.cpp
patching file Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.h
patching file Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.messages.in

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/4369451
Comment 11 youenn fablet 2017-08-23 12:04:25 PDT
Created attachment 318894 [details]
Patch for landing
Comment 12 WebKit Commit Bot 2017-08-23 12:45:52 PDT
Comment on attachment 318894 [details]
Patch for landing

Clearing flags on attachment: 318894

Committed r221093: <http://trac.webkit.org/changeset/221093>
Comment 13 WebKit Commit Bot 2017-08-23 12:45:54 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 Radar WebKit Bug Importer 2017-08-23 12:46:55 PDT
<rdar://problem/34041453>