Changeset 252986 in webkit


Ignore:
Timestamp:
Dec 2, 2019 9:25:26 AM (4 years ago)
Author:
youenn@apple.com
Message:

SWServer::scriptFetchFinished does not need a Connection as parameter
https://bugs.webkit.org/show_bug.cgi?id=204641

Reviewed by Chris Dumez.

No change of behavior, removing an unused parameter.

  • workers/service/server/SWServer.cpp:

(WebCore::SWServer::Connection::finishFetchingScriptInServer):
(WebCore::SWServer::startScriptFetch):
(WebCore::SWServer::didResolveRegistrationPromise):

  • workers/service/server/SWServer.h:
  • workers/service/server/SWServerJobQueue.cpp:

(WebCore::SWServerJobQueue::scriptFetchFinished):

  • workers/service/server/SWServerJobQueue.h:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252985 r252986  
     12019-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
    1192019-12-02  youenn fablet  <youenn@apple.com>
    220
  • trunk/Source/WebCore/workers/service/server/SWServer.cpp

    r252300 r252986  
    289289void SWServer::Connection::finishFetchingScriptInServer(const ServiceWorkerFetchResult& result)
    290290{
    291     m_server.scriptFetchFinished(*this, result);
     291    m_server.scriptFetchFinished(result);
    292292}
    293293
     
    384384}
    385385
    386 void SWServer::scriptFetchFinished(Connection& connection, const ServiceWorkerFetchResult& result)
     386void SWServer::scriptFetchFinished(const ServiceWorkerFetchResult& result)
    387387{
    388388    LOG(ServiceWorker, "Server handling scriptFetchFinished for current job %s in client", result.jobDataIdentifier.loggingString().utf8().data());
     
    394394        return;
    395395
    396     jobQueue->scriptFetchFinished(connection, result);
     396    jobQueue->scriptFetchFinished(result);
    397397}
    398398
     
    543543}
    544544
    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)
     545void 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)
    546546{
    547547    tryInstallContextData({ jobDataIdentifier, registration.data(), ServiceWorkerIdentifier::generate(), script, contentSecurityPolicy, referrerPolicy, url, type, false, WTFMove(scriptResourceMap) });
  • trunk/Source/WebCore/workers/service/server/SWServer.h

    r251409 r252986  
    147147    void startScriptFetch(const ServiceWorkerJobData&, FetchOptions::Cache);
    148148
    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>&&);
    150150    void terminateWorker(SWServerWorker&);
    151151    WEBCORE_EXPORT void syncTerminateWorker(SWServerWorker&);
     
    208208
    209209private:
    210     void scriptFetchFinished(Connection&, const ServiceWorkerFetchResult&);
     210    void scriptFetchFinished(const ServiceWorkerFetchResult&);
    211211
    212212    void didResolveRegistrationPromise(Connection&, const ServiceWorkerRegistrationKey&);
  • trunk/Source/WebCore/workers/service/server/SWServerJobQueue.cpp

    r252300 r252986  
    5757}
    5858
    59 void SWServerJobQueue::scriptFetchFinished(SWServer::Connection& connection, const ServiceWorkerFetchResult& result)
     59void SWServerJobQueue::scriptFetchFinished(const ServiceWorkerFetchResult& result)
    6060{
    6161    if (!isCurrentlyProcessingJob(result.jobDataIdentifier))
     
    102102
    103103    // 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, { });
    105105}
    106106
  • trunk/Source/WebCore/workers/service/server/SWServerJobQueue.h

    r252300 r252986  
    5151    void runNextJob();
    5252
    53     void scriptFetchFinished(SWServer::Connection&, const ServiceWorkerFetchResult&);
     53    void scriptFetchFinished(const ServiceWorkerFetchResult&);
    5454    void scriptContextFailedToStart(const ServiceWorkerJobDataIdentifier&, ServiceWorkerIdentifier, const String& message);
    5555    void scriptContextStarted(const ServiceWorkerJobDataIdentifier&, ServiceWorkerIdentifier);
Note: See TracChangeset for help on using the changeset viewer.