[go: nahoru, domu]

Skip to content

Commit

Permalink
[DirectSockets] Add TCPServerSocket support on the browser side
Browse files Browse the repository at this point in the history
This CL adds OpenTCPServerSocket() to direct_sockets.mojom to forward
opening calls from the renderer to the network service.

Bug: 1408140
Change-Id: Ifeb353964520877db1862e99e3a66c78356a1313
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4231841
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1107667}
  • Loading branch information
Andrew Rayskiy authored and chromium-wpt-export-bot committed Feb 21, 2023
1 parent 7c1011c commit 2bb6046
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/chromium/mock-direct-sockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ self.DirectSocketsServiceTest = (() => {
result: -11
});
}

openTCPServerSocket(
options,
receiver) {
return Promise.resolve({
// return result = net:Error::NOT_IMPLEMENTED (code -11)
result: -11
});
}
}

let testInternal = {
Expand Down

0 comments on commit 2bb6046

Please sign in to comment.