[webkit-changes] [WebKit/WebKit] c59294: SWRegistrationStore and WebRegistrationStore shoul...
Ryosuke Niwa
noreply at github.com
Mon Oct 7 20:57:14 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c592945a30a96721ad40fec9be8d6777909ace97
https://github.com/WebKit/WebKit/commit/c592945a30a96721ad40fec9be8d6777909ace97
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2024-10-07 (Mon, 07 Oct 2024)
Changed paths:
M Source/WebCore/workers/service/server/SWRegistrationStore.h
M Source/WebCore/workers/service/server/SWServer.cpp
M Source/WebCore/workers/service/server/SWServer.h
M Source/WebCore/workers/service/server/SWServerDelegate.h
M Source/WebKit/NetworkProcess/NetworkSession.cpp
M Source/WebKit/NetworkProcess/NetworkSession.h
M Source/WebKit/NetworkProcess/ServiceWorker/WebSWRegistrationStore.cpp
M Source/WebKit/NetworkProcess/ServiceWorker/WebSWRegistrationStore.h
Log Message:
-----------
SWRegistrationStore and WebRegistrationStore should be ref counted
https://bugs.webkit.org/show_bug.cgi?id=280993
Reviewed by Sihui Liu.
Make SWRegistrationStore and WebSWRegistrationStore ref counted as they also support WeakPtr.
* Source/WebCore/workers/service/server/SWRegistrationStore.h:
* Source/WebCore/workers/service/server/SWServer.cpp:
(WebCore::SWServer::removeRegistration):
(WebCore::SWServer::storeRegistrationsOnDisk):
(WebCore::SWServer::clearAll):
(WebCore::SWServer::clearInternal):
(WebCore::SWServer::SWServer):
(WebCore::SWServer::storeRegistrationForWorker):
* Source/WebCore/workers/service/server/SWServer.h:
* Source/WebCore/workers/service/server/SWServerDelegate.h:
* Source/WebKit/NetworkProcess/NetworkSession.cpp:
(WebKit::NetworkSession::createRegistrationStore): Renamed.
* Source/WebKit/NetworkProcess/NetworkSession.h:
* Source/WebKit/NetworkProcess/ServiceWorker/WebSWRegistrationStore.cpp:
(WebKit::WebSWRegistrationStore::create):
* Source/WebKit/NetworkProcess/ServiceWorker/WebSWRegistrationStore.h:
Canonical link: https://commits.webkit.org/284810@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list