Changeset 240304 in webkit


Ignore:
Timestamp:
Jan 22, 2019 4:10:19 PM (5 years ago)
Author:
Michael Catanzaro
Message:

Unreviewed, further build fixes after r240292
https://bugs.webkit.org/show_bug.cgi?id=193580
<rdar://problem/47457742>

This builds for libsoup. Doesn't work, but at least builds.

Also, speculative fixes for curl.

  • NetworkProcess/NetworkProcess.cpp:

(WebKit::NetworkProcess::defaultStorageSession const):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r240302 r240304  
     12019-01-22  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Unreviewed, further build fixes after r240292
     4        https://bugs.webkit.org/show_bug.cgi?id=193580
     5        <rdar://problem/47457742>
     6
     7        This builds for libsoup. Doesn't work, but at least builds.
     8
     9        Also, speculative fixes for curl.
     10
     11        * NetworkProcess/NetworkProcess.cpp:
     12        (WebKit::NetworkProcess::defaultStorageSession const):
     13
    1142019-01-22  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp

    r240302 r240304  
    9797#endif
    9898
     99#if USE(CURL)
     100#include <WebCore/CurlContext.h>
     101#endif
     102
    99103#if ENABLE(SERVICE_WORKER)
    100104#include "WebSWServerToContextConnectionMessages.h"
     
    530534WebCore::NetworkStorageSession& NetworkProcess::defaultStorageSession() const
    531535{
    532     if (!m_defaultNetworkStorageSession)
    533         m_defaultNetworkStorageSession = std::make_unique<WebCore::NetworkStorageSession>(PAL::SessionID::defaultSessionID());
     536    if (m_defaultNetworkStorageSession)
     537      return *m_defaultNetworkStorageSession;
     538
     539#if PLATFORM(COCOA)
     540    m_defaultNetworkStorageSession = std::make_unique<WebCore::NetworkStorageSession>(PAL::SessionID::defaultSessionID());
     541#elif PLATFORM(SOUP)
     542    m_defaultNetworkStorageSession = std::make_unique<WebCore::NetworkStorageSession>(PAL::SessionID::defaultSessionID(), std::make_unique<SoupNetworkSession>(PAL::SessionID::defaultSessionID()));
     543#elif PLATFORM(CURL)
     544    m_defaultNetworkStorageSession = std::make_unique<WebCore::NetworkStorageSession>(PAL::SessionID::defaultSessionID(), CurlContext::singleton());
     545#else
     546#error Implement me
     547#endif
     548
    534549    return *m_defaultNetworkStorageSession;
    535550}
Note: See TracChangeset for help on using the changeset viewer.