-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Direct Sockets API: Align with WebSocketStream API.
This CL effectively refactors the idl representation of direct sockets. Most notable changes: * No more nesting under navigator: navigator.openTCPSocket(...) -> new TCPSocket(...) * Member accessors are now replaced with a singleton promise socket.connection that returns all necessary info (readable/writable/local_address/peer_address) * A member promise closed is introduced that resolves on user-initiated close and rejects on socket error * close() by default rejects if streams are locked. Use close({force: true}) to bypass this. Bug: 1306873 Change-Id: I9a0083837939344ca0cecb43dfc97e40009a0eb9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3528783 Reviewed-by: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Adam Rice <ricea@chromium.org> Commit-Queue: Andrew Rayskiy <greengrape@google.com> Cr-Commit-Position: refs/heads/main@{#986969}
- Loading branch information
Andrew Rayskiy
authored and
Chromium LUCI CQ
committed
Mar 30, 2022
1 parent
316cea3
commit b622f54
Showing
47 changed files
with
2,204 additions
and
1,670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
447 changes: 108 additions & 339 deletions
447
content/browser/direct_sockets/direct_sockets_open_browsertest.cc
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.