Hiroki Nakagawa would like Yutaka Hirano and Adam Rice to review this change.
WebSocket: Rename DocumentWebSocketChannel to WebSocketChannelImpl
DocumentWebSocketChannel is used for WebSocket on Document, but it's also used
on WorkerGlobalScope when the off-main-thread WebSocket is enabled. This CL
renames DocumentWebSocketChannel to WebSocketChannelImpl for reducing confusion.
Before this CL, the class hierarchy is as follows:
- WebSocketChannel
- DocumentWebSocketChannel
- WorkerWebSocketChannel
- MockWebSocketChannel
After this CL, the class hierarchy is as follows:
- WebSocketChannel
- WebSocketChannelImpl
- WorkerWebSocketChannel (to be removed)
- MockWebSocketChannel
After the off-main-thread WebSocketChannel is enabled by default,
WorkerWebSocketChannel is removed.
Bug: 825740
Change-Id: If9998a7c30cfda05d6d3ffb6f7b4b4437edf0aed
---
M third_party/blink/renderer/modules/BUILD.gn
M third_party/blink/renderer/modules/websockets/BUILD.gn
M third_party/blink/renderer/modules/websockets/README.md
M third_party/blink/renderer/modules/websockets/web_pepper_socket_impl.cc
M third_party/blink/renderer/modules/websockets/web_socket_channel.cc
R third_party/blink/renderer/modules/websockets/web_socket_channel_impl.cc
R third_party/blink/renderer/modules/websockets/web_socket_channel_impl.h
R third_party/blink/renderer/modules/websockets/web_socket_channel_impl_test.cc
M third_party/blink/renderer/modules/websockets/worker_web_socket_channel.cc
M third_party/blink/renderer/modules/websockets/worker_web_socket_channel.h
10 files changed, 169 insertions(+), 181 deletions(-)
To view, visit change 1025240. To unsubscribe, or for help writing mail filters, visit settings.
+yhirano@,ricea@: PTAL
Patch set 2:Code-Review +1
modules/ LGTM
To view, visit change 1025240. To unsubscribe, or for help writing mail filters, visit settings.
Patch set 2:Commit-Queue +2
Try jobs failed on following builders:
linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/535135)
Commit Bot merged this change.
WebSocket: Rename DocumentWebSocketChannel to WebSocketChannelImpl
DocumentWebSocketChannel is used for WebSocket on Document, but it's also used
on WorkerGlobalScope when the off-main-thread WebSocket is enabled. This CL
renames DocumentWebSocketChannel to WebSocketChannelImpl for reducing confusion.
Before this CL, the class hierarchy is as follows:
- WebSocketChannel
- DocumentWebSocketChannel
- WorkerWebSocketChannel
- MockWebSocketChannel
After this CL, the class hierarchy is as follows:
- WebSocketChannel
- WebSocketChannelImpl
- WorkerWebSocketChannel (to be removed)
- MockWebSocketChannel
After the off-main-thread WebSocketChannel is enabled by default,
WorkerWebSocketChannel is removed.
Bug: 825740
Change-Id: If9998a7c30cfda05d6d3ffb6f7b4b4437edf0aed
Reviewed-on: https://chromium-review.googlesource.com/1025240
Reviewed-by: Yutaka Hirano <yhi...@chromium.org>
Reviewed-by: Kentaro Hara <har...@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhi...@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553037}
---
M third_party/blink/renderer/modules/BUILD.gn
M third_party/blink/renderer/modules/websockets/BUILD.gn
M third_party/blink/renderer/modules/websockets/README.md
M third_party/blink/renderer/modules/websockets/web_pepper_socket_impl.cc
M third_party/blink/renderer/modules/websockets/web_socket_channel.cc
R third_party/blink/renderer/modules/websockets/web_socket_channel_impl.cc
R third_party/blink/renderer/modules/websockets/web_socket_channel_impl.h
R third_party/blink/renderer/modules/websockets/web_socket_channel_impl_test.cc
M third_party/blink/renderer/modules/websockets/worker_web_socket_channel.cc
M third_party/blink/renderer/modules/websockets/worker_web_socket_channel.h
10 files changed, 169 insertions(+), 181 deletions(-)