Simplify data channel creation logic in WebRTC-based protocol
Previously WebrtcDataStreamAdapter was implementing MessageChannelFactory, which means that it was always creating channels asynchronously and in OPEN state. Refactored it to create channels in CONNECTING state. Significantly simplifies channel setup code as it's always synchronous. It's also possible to reject incoming channels before they are connected and handle channels rejected by the peer before being fully connected. Review-Url: https://codereview.chromium.org/2164163002 Cr-Commit-Position: refs/heads/master@{#407046}
Showing
Please register or sign in to comment