| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index 1386b37783ecbea77602dfb670b435f43e1f6032..d1cfcf079c4ba299343b7e845eedcc2fcbf8e9d2 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -45,7 +45,6 @@
|
| #include "content/child/web_url_loader_impl.h"
|
| #include "content/child/web_url_request_util.h"
|
| #include "content/child/webmessageportchannel_impl.h"
|
| -#include "content/child/websocket_bridge.h"
|
| #include "content/child/weburlresponse_extradata_impl.h"
|
| #include "content/common/accessibility_messages.h"
|
| #include "content/common/clipboard_messages.h"
|
| @@ -135,6 +134,7 @@
|
| #include "content/renderer/web_frame_utils.h"
|
| #include "content/renderer/web_ui_extension.h"
|
| #include "content/renderer/websharedworker_proxy.h"
|
| +#include "content/renderer/websockethandle_impl.h"
|
| #include "crypto/sha2.h"
|
| #include "gin/modules/module_registry.h"
|
| #include "media/audio/audio_output_device.h"
|
| @@ -4312,11 +4312,6 @@ void RenderFrameImpl::requestStorageQuota(
|
| QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
|
| }
|
|
|
| -void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) {
|
| - WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle);
|
| - impl->set_render_frame_id(routing_id_);
|
| -}
|
| -
|
| blink::WebPresentationClient* RenderFrameImpl::presentationClient() {
|
| if (!presentation_dispatcher_)
|
| presentation_dispatcher_ = new PresentationDispatcher(this);
|
| @@ -4329,6 +4324,13 @@ blink::WebPushClient* RenderFrameImpl::pushClient() {
|
| return push_messaging_dispatcher_;
|
| }
|
|
|
| +void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) {
|
| + // Initialize the WebSocketHandle with our ServiceRegistry to provide the
|
| + // WebSocket implementation with context about this frame.
|
| + static_cast<WebSocketHandleImpl*>(handle)->Initialize(
|
| + blink_interface_provider_.get());
|
| +}
|
| +
|
| void RenderFrameImpl::willStartUsingPeerConnectionHandler(
|
| blink::WebRTCPeerConnectionHandler* handler) {
|
| #if defined(ENABLE_WEBRTC)
|
|
|