WebSocket: Reduce dependencies on Document
This is a preparation CL for enabling to establish WebSocket connections off the main thread. This CL reduces dependencies on Document in DocumentWebSocketChannel as a first step for making it thread-safe. Specifically, this CL replaces GetDocument() calls with GetExecutionContext() calls, and makes the channel get SubresourceFilter not from DocumentLoader buf from BaseFetchContext. Bug: 825740 Change-Id: Ibe49fa09a613818ec972b40a8141f7eecc5a3861 Reviewed-on: https://chromium-review.googlesource.com/981732 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Adam Rice <ricea@chromium.org> Reviewed-by:
Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/master@{#546061}
Showing
Please register or sign in to comment