Changeset 252986 in webkit
- Timestamp:
- Dec 2, 2019 9:25:26 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r252985 r252986 1 2019-12-02 youenn fablet <youenn@apple.com> 2 3 SWServer::scriptFetchFinished does not need a Connection as parameter 4 https://bugs.webkit.org/show_bug.cgi?id=204641 5 6 Reviewed by Chris Dumez. 7 8 No change of behavior, removing an unused parameter. 9 10 * workers/service/server/SWServer.cpp: 11 (WebCore::SWServer::Connection::finishFetchingScriptInServer): 12 (WebCore::SWServer::startScriptFetch): 13 (WebCore::SWServer::didResolveRegistrationPromise): 14 * workers/service/server/SWServer.h: 15 * workers/service/server/SWServerJobQueue.cpp: 16 (WebCore::SWServerJobQueue::scriptFetchFinished): 17 * workers/service/server/SWServerJobQueue.h: 18 1 19 2019-12-02 youenn fablet <youenn@apple.com> 2 20 -
trunk/Source/WebCore/workers/service/server/SWServer.cpp
r252300 r252986 289 289 void SWServer::Connection::finishFetchingScriptInServer(const ServiceWorkerFetchResult& result) 290 290 { 291 m_server.scriptFetchFinished( *this,result);291 m_server.scriptFetchFinished(result); 292 292 } 293 293 … … 384 384 } 385 385 386 void SWServer::scriptFetchFinished( Connection& connection,const ServiceWorkerFetchResult& result)386 void SWServer::scriptFetchFinished(const ServiceWorkerFetchResult& result) 387 387 { 388 388 LOG(ServiceWorker, "Server handling scriptFetchFinished for current job %s in client", result.jobDataIdentifier.loggingString().utf8().data()); … … 394 394 return; 395 395 396 jobQueue->scriptFetchFinished( connection,result);396 jobQueue->scriptFetchFinished(result); 397 397 } 398 398 … … 543 543 } 544 544 545 void SWServer::updateWorker( Connection&,const ServiceWorkerJobDataIdentifier& jobDataIdentifier, SWServerRegistration& registration, const URL& url, const String& script, const ContentSecurityPolicyResponseHeaders& contentSecurityPolicy, const String& referrerPolicy, WorkerType type, HashMap<URL, ServiceWorkerContextData::ImportedScript>&& scriptResourceMap)545 void SWServer::updateWorker(const ServiceWorkerJobDataIdentifier& jobDataIdentifier, SWServerRegistration& registration, const URL& url, const String& script, const ContentSecurityPolicyResponseHeaders& contentSecurityPolicy, const String& referrerPolicy, WorkerType type, HashMap<URL, ServiceWorkerContextData::ImportedScript>&& scriptResourceMap) 546 546 { 547 547 tryInstallContextData({ jobDataIdentifier, registration.data(), ServiceWorkerIdentifier::generate(), script, contentSecurityPolicy, referrerPolicy, url, type, false, WTFMove(scriptResourceMap) }); -
trunk/Source/WebCore/workers/service/server/SWServer.h
r251409 r252986 147 147 void startScriptFetch(const ServiceWorkerJobData&, FetchOptions::Cache); 148 148 149 void updateWorker( Connection&,const ServiceWorkerJobDataIdentifier&, SWServerRegistration&, const URL&, const String& script, const ContentSecurityPolicyResponseHeaders&, const String& referrerPolicy, WorkerType, HashMap<URL, ServiceWorkerContextData::ImportedScript>&&);149 void updateWorker(const ServiceWorkerJobDataIdentifier&, SWServerRegistration&, const URL&, const String& script, const ContentSecurityPolicyResponseHeaders&, const String& referrerPolicy, WorkerType, HashMap<URL, ServiceWorkerContextData::ImportedScript>&&); 150 150 void terminateWorker(SWServerWorker&); 151 151 WEBCORE_EXPORT void syncTerminateWorker(SWServerWorker&); … … 208 208 209 209 private: 210 void scriptFetchFinished( Connection&,const ServiceWorkerFetchResult&);210 void scriptFetchFinished(const ServiceWorkerFetchResult&); 211 211 212 212 void didResolveRegistrationPromise(Connection&, const ServiceWorkerRegistrationKey&); -
trunk/Source/WebCore/workers/service/server/SWServerJobQueue.cpp
r252300 r252986 57 57 } 58 58 59 void SWServerJobQueue::scriptFetchFinished( SWServer::Connection& connection,const ServiceWorkerFetchResult& result)59 void SWServerJobQueue::scriptFetchFinished(const ServiceWorkerFetchResult& result) 60 60 { 61 61 if (!isCurrentlyProcessingJob(result.jobDataIdentifier)) … … 102 102 103 103 // FIXME: Support the proper worker type (classic vs module) 104 m_server.updateWorker( connection,job.identifier(), *registration, job.scriptURL, result.script, result.contentSecurityPolicy, result.referrerPolicy, WorkerType::Classic, { });104 m_server.updateWorker(job.identifier(), *registration, job.scriptURL, result.script, result.contentSecurityPolicy, result.referrerPolicy, WorkerType::Classic, { }); 105 105 } 106 106 -
trunk/Source/WebCore/workers/service/server/SWServerJobQueue.h
r252300 r252986 51 51 void runNextJob(); 52 52 53 void scriptFetchFinished( SWServer::Connection&,const ServiceWorkerFetchResult&);53 void scriptFetchFinished(const ServiceWorkerFetchResult&); 54 54 void scriptContextFailedToStart(const ServiceWorkerJobDataIdentifier&, ServiceWorkerIdentifier, const String& message); 55 55 void scriptContextStarted(const ServiceWorkerJobDataIdentifier&, ServiceWorkerIdentifier);
Note: See TracChangeset
for help on using the changeset viewer.