• wtc@chromium.org's avatar
    Change the lifespan of SSlConnectJobMessengers so that they are created · cffd7f90
    wtc@chromium.org authored
    only when needed, and deleted as soon as they are no longer necessary.
    
    Add methods to SSLClientSocketPool that are passed to the SSLConnectJob
    and SSLConnectJobMessenger as callbacks. These allow the SSLConnectJob
    to tell the SSLClientSocketPool to create a messenger for the job when
    appropriate, and the SSLConnectJobMessenger to tell the
    SSLCLientSocketPool to remove a messenger when appropriate. An
    SSLConnectJob will now only create an SSLConnectJobMessenger if its
    socket's session is not already in the session cache. The messenger
    will then ask to be removed when there are no remaining pending or
    connecting sockets in the messenger.
    
    Written by Mackenzie Shelley <mshelley@chromium.org>
    Original review URL: https://codereview.chromium.org/384873002/
    
    R=rsleevi@chromium.org
    TBR=mek@chromium.org
    BUG=398967
    
    Review URL: https://codereview.chromium.org/476313004
    
    Cr-Commit-Position: refs/heads/master@{#291192}
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291192 0039d316-1c4b-4281-b951-d872f2087c98
    cffd7f90
ssl_client_socket.h 8.66 KB