Changeset 213746 in webkit


Ignore:
Timestamp:
Mar 10, 2017, 6:12:54 PM (8 years ago)
Author:
achristensen@apple.com
Message:

Don't compile RemoteNetworkingContext when using NetworkSession
https://bugs.webkit.org/show_bug.cgi?id=169497

Reviewed by Andy Estes.

RemoteNetworkingContext is only really used because PingHandle requires a NetworkingContext.
When using NetworkSession, we use PingLoad instead of PingHandle, so there's no reason to
ensure there's a RemoteNetworkingContext corresponding to new private sessions when they're never used.

  • NetworkProcess/NetworkProcess.cpp:

(WebKit::NetworkProcess::initializeNetworkProcess):
(WebKit::NetworkProcess::ensurePrivateBrowsingSession):

  • NetworkProcess/RemoteNetworkingContext.h:
  • NetworkProcess/mac/RemoteNetworkingContext.mm:

(WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):

  • NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: Removed.
  • PlatformGTK.cmake:

GTK only uses NetworkSession, so RemoteNetworkingContextSoup is no longer necessary.

Location:
trunk/Source/WebKit2
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r213732 r213746  
     12017-03-10  Alex Christensen  <achristensen@webkit.org>
     2
     3        Don't compile RemoteNetworkingContext when using NetworkSession
     4        https://bugs.webkit.org/show_bug.cgi?id=169497
     5
     6        Reviewed by Andy Estes.
     7
     8        RemoteNetworkingContext is only really used because PingHandle requires a NetworkingContext.
     9        When using NetworkSession, we use PingLoad instead of PingHandle, so there's no reason to
     10        ensure there's a RemoteNetworkingContext corresponding to new private sessions when they're never used.
     11
     12        * NetworkProcess/NetworkProcess.cpp:
     13        (WebKit::NetworkProcess::initializeNetworkProcess):
     14        (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
     15        * NetworkProcess/RemoteNetworkingContext.h:
     16        * NetworkProcess/mac/RemoteNetworkingContext.mm:
     17        (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
     18        * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: Removed.
     19        * PlatformGTK.cmake:
     20        GTK only uses NetworkSession, so RemoteNetworkingContextSoup is no longer necessary.
     21
    1222017-03-10  Brent Fulgham  <bfulgham@apple.com>
    223
  • trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp

    r213623 r213746  
    233233    setCanHandleHTTPSServerTrustEvaluation(parameters.canHandleHTTPSServerTrustEvaluation);
    234234
     235#if !USE(NETWORK_SESSION)
    235236    // FIXME: instead of handling this here, a message should be sent later (scales to multiple sessions)
    236237    if (parameters.privateBrowsingEnabled)
    237238        RemoteNetworkingContext::ensurePrivateBrowsingSession(SessionID::legacyPrivateSessionID());
     239#endif
    238240
    239241    if (parameters.shouldUseTestingNetworkSession)
     
    288290void NetworkProcess::ensurePrivateBrowsingSession(SessionID sessionID)
    289291{
     292#if !USE(NETWORK_SESSION)
    290293    RemoteNetworkingContext::ensurePrivateBrowsingSession(sessionID);
     294#endif
    291295}
    292296
  • trunk/Source/WebKit2/NetworkProcess/RemoteNetworkingContext.h

    r197563 r213746  
    2525 */
    2626
    27 #ifndef RemoteNetworkingContext_h
    28 #define RemoteNetworkingContext_h
     27#pragma once
    2928
    3029#include <WebCore/NetworkingContext.h>
    3130#include <WebCore/SessionID.h>
     31
     32#if !USE(NETWORK_SESSION)
    3233
    3334namespace WebKit {
     
    7475}
    7576
    76 #endif // RemoteNetworkingContext_h
     77#endif
  • trunk/Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.mm

    r213441 r213746  
    3737#import <wtf/MainThread.h>
    3838
     39#if !USE(NETWORK_SESSION)
     40
    3941using namespace WebCore;
    4042
    4143namespace WebKit {
    42 
    4344
    4445RemoteNetworkingContext::~RemoteNetworkingContext()
     
    9495
    9596    NetworkStorageSession::ensurePrivateBrowsingSession(sessionID, base + '.' + String::number(sessionID.sessionID()));
    96 
    97 #if USE(NETWORK_SESSION)
    98     auto networkSession = NetworkSession::create(sessionID, NetworkProcess::singleton().supplement<LegacyCustomProtocolManager>());
    99     SessionTracker::setSession(sessionID, WTFMove(networkSession));
    100 #endif
    10197}
    10298
    10399}
     100
     101#endif
  • trunk/Source/WebKit2/PlatformGTK.cmake

    r213441 r213746  
    4141    NetworkProcess/soup/NetworkProcessSoup.cpp
    4242    NetworkProcess/soup/NetworkSessionSoup.cpp
    43     NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
    4443
    4544    Platform/IPC/glib/GSocketMonitor.cpp
Note: See TracChangeset for help on using the changeset viewer.