Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2284473002: Move WebSocketHandleImpl into Blink (take 2) (Closed)
Patch Set: Extract WebSocketHandle as pure interface Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 124 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
125 #include "content/renderer/renderer_webcolorchooser_impl.h" 125 #include "content/renderer/renderer_webcolorchooser_impl.h"
126 #include "content/renderer/savable_resources.h" 126 #include "content/renderer/savable_resources.h"
127 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" 127 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h"
128 #include "content/renderer/shared_worker_repository.h" 128 #include "content/renderer/shared_worker_repository.h"
129 #include "content/renderer/skia_benchmarking_extension.h" 129 #include "content/renderer/skia_benchmarking_extension.h"
130 #include "content/renderer/stats_collection_controller.h" 130 #include "content/renderer/stats_collection_controller.h"
131 #include "content/renderer/web_frame_utils.h" 131 #include "content/renderer/web_frame_utils.h"
132 #include "content/renderer/web_ui_extension.h" 132 #include "content/renderer/web_ui_extension.h"
133 #include "content/renderer/websharedworker_proxy.h" 133 #include "content/renderer/websharedworker_proxy.h"
134 #include "content/renderer/websockethandle_impl.h"
135 #include "crypto/sha2.h" 134 #include "crypto/sha2.h"
136 #include "gin/modules/module_registry.h" 135 #include "gin/modules/module_registry.h"
137 #include "media/audio/audio_output_device.h" 136 #include "media/audio/audio_output_device.h"
138 #include "media/base/audio_renderer_mixer_input.h" 137 #include "media/base/audio_renderer_mixer_input.h"
139 #include "media/base/cdm_factory.h" 138 #include "media/base/cdm_factory.h"
140 #include "media/base/decoder_factory.h" 139 #include "media/base/decoder_factory.h"
141 #include "media/base/media.h" 140 #include "media/base/media.h"
142 #include "media/base/media_log.h" 141 #include "media/base/media_log.h"
143 #include "media/base/media_switches.h" 142 #include "media/base/media_switches.h"
144 #include "media/blink/url_index.h" 143 #include "media/blink/url_index.h"
(...skipping 4142 matching lines...) Expand 10 before | Expand all | Expand 10 after
4287 presentation_dispatcher_ = new PresentationDispatcher(this); 4286 presentation_dispatcher_ = new PresentationDispatcher(this);
4288 return presentation_dispatcher_; 4287 return presentation_dispatcher_;
4289 } 4288 }
4290 4289
4291 blink::WebPushClient* RenderFrameImpl::pushClient() { 4290 blink::WebPushClient* RenderFrameImpl::pushClient() {
4292 if (!push_messaging_dispatcher_) 4291 if (!push_messaging_dispatcher_)
4293 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); 4292 push_messaging_dispatcher_ = new PushMessagingDispatcher(this);
4294 return push_messaging_dispatcher_; 4293 return push_messaging_dispatcher_;
4295 } 4294 }
4296 4295
4297 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) {
4298 // Initialize the WebSocketHandle with our InterfaceProvider to provide the
4299 // WebSocket implementation with context about this frame. This is important
4300 // so that the browser can show UI associated with the WebSocket (e.g., for
4301 // certificate errors).
4302 static_cast<WebSocketHandleImpl*>(handle)->Initialize(
4303 blink_interface_provider_.get());
4304 }
4305
4306 void RenderFrameImpl::willStartUsingPeerConnectionHandler( 4296 void RenderFrameImpl::willStartUsingPeerConnectionHandler(
4307 blink::WebRTCPeerConnectionHandler* handler) { 4297 blink::WebRTCPeerConnectionHandler* handler) {
4308 #if defined(ENABLE_WEBRTC) 4298 #if defined(ENABLE_WEBRTC)
4309 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); 4299 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_);
4310 #endif 4300 #endif
4311 } 4301 }
4312 4302
4313 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { 4303 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() {
4314 if (!web_user_media_client_) 4304 if (!web_user_media_client_)
4315 InitializeUserMediaClient(); 4305 InitializeUserMediaClient();
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after
6331 // event target. Potentially a Pepper plugin will receive the event. 6321 // event target. Potentially a Pepper plugin will receive the event.
6332 // In order to tell whether a plugin gets the last mouse event and which it 6322 // In order to tell whether a plugin gets the last mouse event and which it
6333 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6323 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6334 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6324 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6335 // |pepper_last_mouse_event_target_|. 6325 // |pepper_last_mouse_event_target_|.
6336 pepper_last_mouse_event_target_ = nullptr; 6326 pepper_last_mouse_event_target_ = nullptr;
6337 #endif 6327 #endif
6338 } 6328 }
6339 6329
6340 } // namespace content 6330 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698