| OLD | NEW |
| 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 Loading... |
| 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 4143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4288 presentation_dispatcher_ = new PresentationDispatcher(this); | 4287 presentation_dispatcher_ = new PresentationDispatcher(this); |
| 4289 return presentation_dispatcher_; | 4288 return presentation_dispatcher_; |
| 4290 } | 4289 } |
| 4291 | 4290 |
| 4292 blink::WebPushClient* RenderFrameImpl::pushClient() { | 4291 blink::WebPushClient* RenderFrameImpl::pushClient() { |
| 4293 if (!push_messaging_dispatcher_) | 4292 if (!push_messaging_dispatcher_) |
| 4294 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); | 4293 push_messaging_dispatcher_ = new PushMessagingDispatcher(this); |
| 4295 return push_messaging_dispatcher_; | 4294 return push_messaging_dispatcher_; |
| 4296 } | 4295 } |
| 4297 | 4296 |
| 4298 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { | |
| 4299 // Initialize the WebSocketHandle with our InterfaceProvider to provide the | |
| 4300 // WebSocket implementation with context about this frame. This is important | |
| 4301 // so that the browser can show UI associated with the WebSocket (e.g., for | |
| 4302 // certificate errors). | |
| 4303 static_cast<WebSocketHandleImpl*>(handle)->Initialize( | |
| 4304 blink_interface_provider_.get()); | |
| 4305 } | |
| 4306 | |
| 4307 void RenderFrameImpl::willStartUsingPeerConnectionHandler( | 4297 void RenderFrameImpl::willStartUsingPeerConnectionHandler( |
| 4308 blink::WebRTCPeerConnectionHandler* handler) { | 4298 blink::WebRTCPeerConnectionHandler* handler) { |
| 4309 #if defined(ENABLE_WEBRTC) | 4299 #if defined(ENABLE_WEBRTC) |
| 4310 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); | 4300 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame_); |
| 4311 #endif | 4301 #endif |
| 4312 } | 4302 } |
| 4313 | 4303 |
| 4314 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { | 4304 blink::WebUserMediaClient* RenderFrameImpl::userMediaClient() { |
| 4315 if (!web_user_media_client_) | 4305 if (!web_user_media_client_) |
| 4316 InitializeUserMediaClient(); | 4306 InitializeUserMediaClient(); |
| (...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6333 // event target. Potentially a Pepper plugin will receive the event. | 6323 // event target. Potentially a Pepper plugin will receive the event. |
| 6334 // In order to tell whether a plugin gets the last mouse event and which it | 6324 // In order to tell whether a plugin gets the last mouse event and which it |
| 6335 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6325 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6336 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6326 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6337 // |pepper_last_mouse_event_target_|. | 6327 // |pepper_last_mouse_event_target_|. |
| 6338 pepper_last_mouse_event_target_ = nullptr; | 6328 pepper_last_mouse_event_target_ = nullptr; |
| 6339 #endif | 6329 #endif |
| 6340 } | 6330 } |
| 6341 | 6331 |
| 6342 } // namespace content | 6332 } // namespace content |
| OLD | NEW |