• sergeyu's avatar
    Move ownership of Transport out of Session. · e5767602
    sergeyu authored
    Previously Session implementations were responsible for creation and
    ownership of Transport objects. Now Connection* classes own both
    Transport and Session instances. This allows to ensure that correct
    type of transport is created (i.e. WebRTC connection uses
    WebrtcTransport). It also makes it possible for the host to support
    two types of connections similtaneously (previously Ice connections
    were not working when the host was started with --enable-webrtc).
    
    Session is no longer responsible for tracking state of the Transport,
    so it doesn't need CONNECTED state anymore. Session just passes
    transport-info messages to and from transport and the Connection
    object is responsible for tracking the state of the transport.
    
    BUG=547158
    
    Review URL: https://codereview.chromium.org/1545743002
    
    Cr-Commit-Position: refs/heads/master@{#367003}
    e5767602
transport.cc 670 Bytes