Bug 178552

Summary: ServiceWorkerContextManager should be an IPC::MessageReceiver
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, ggaren, rniwa, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 178534    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Chris Dumez 2017-10-19 16:42:25 PDT
ServiceWorkerContextManager should be an IPC::MessageReceiver, to avoid putting too many ServiceWorker related methods on WebProcess class.
Comment 1 Chris Dumez 2017-10-19 16:45:48 PDT
Created attachment 324315 [details]
Patch
Comment 2 Chris Dumez 2017-10-19 16:46:46 PDT
Created attachment 324316 [details]
Patch
Comment 3 youenn fablet 2017-10-19 17:14:22 PDT
Comment on attachment 324316 [details]
Patch

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

> Source/WebKit/WebProcess/Storage/ServiceWorkerContextManager.messages.in:27
> +    StartFetchInServiceWorker(uint64_t serverConnectionIdentifier, uint64_t fetchIdentifier, uint64_t serviceWorkerIdentifier, WebCore::ResourceRequest request, struct WebCore::FetchOptions options)

Can we rename these to StartWorker and Fetch since they are now scoped by ServiceWorkerContextManager?

> Source/WebKit/WebProcess/WebProcess.cpp:665
>  

#if ENABLE(SERVICE_WORKER) probably

> Source/WebKit/WebProcess/WebProcess.cpp:667
> +        if (m_serviceWorkerManager)

Can you add ASSERT(m_serviceWorkerManager);
Comment 4 Chris Dumez 2017-10-19 18:38:17 PDT
Created attachment 324327 [details]
Patch
Comment 5 Chris Dumez 2017-10-19 19:40:03 PDT
Comment on attachment 324327 [details]
Patch

Clearing flags on attachment: 324327

Committed r223739: <https://trac.webkit.org/changeset/223739>
Comment 6 Chris Dumez 2017-10-19 19:40:05 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2017-11-15 13:00:42 PST
<rdar://problem/35568595>