Split shared code into WebSocketCommon
Split out code from DOMWebSocket that will be shared with WebSocketStream into a new class, WebSocketCommon. The major methods that have been moved are Connect() and CloseInternal(). Connect() in particular has some security-critical checks that should not be duplicated. Some members of DOMWebSocket have been moved to WebSocketCommon because they need to be modified by WebSocketCommon methods. The most important of these is |status_|. This is part of the implementation work for WebSocketStream. The design doc for the work as a whole is at https://docs.google.com/document/d/1XuxEshh5VYBYm1qRVKordTamCOsR-uGQBCYFcHXP4L0/edit BUG=983030 Change-Id: Idba0d5181b2a6946f65d10083f9e15a0fe5e7ec9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1731010Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#683938}
Showing
This diff is collapsed.
Please register or sign in to comment