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

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

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code Created 4 years, 5 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 28 matching lines...) Expand all
39 #include "content/child/quota_dispatcher.h" 39 #include "content/child/quota_dispatcher.h"
40 #include "content/child/request_extra_data.h" 40 #include "content/child/request_extra_data.h"
41 #include "content/child/service_worker/service_worker_handle_reference.h" 41 #include "content/child/service_worker/service_worker_handle_reference.h"
42 #include "content/child/service_worker/service_worker_network_provider.h" 42 #include "content/child/service_worker/service_worker_network_provider.h"
43 #include "content/child/service_worker/service_worker_provider_context.h" 43 #include "content/child/service_worker/service_worker_provider_context.h"
44 #include "content/child/service_worker/web_service_worker_provider_impl.h" 44 #include "content/child/service_worker/web_service_worker_provider_impl.h"
45 #include "content/child/v8_value_converter_impl.h" 45 #include "content/child/v8_value_converter_impl.h"
46 #include "content/child/web_url_loader_impl.h" 46 #include "content/child/web_url_loader_impl.h"
47 #include "content/child/web_url_request_util.h" 47 #include "content/child/web_url_request_util.h"
48 #include "content/child/webmessageportchannel_impl.h" 48 #include "content/child/webmessageportchannel_impl.h"
49 #include "content/child/websocket_bridge.h"
50 #include "content/child/weburlresponse_extradata_impl.h" 49 #include "content/child/weburlresponse_extradata_impl.h"
51 #include "content/common/accessibility_messages.h" 50 #include "content/common/accessibility_messages.h"
52 #include "content/common/clipboard_messages.h" 51 #include "content/common/clipboard_messages.h"
53 #include "content/common/content_constants_internal.h" 52 #include "content/common/content_constants_internal.h"
54 #include "content/common/content_security_policy_header.h" 53 #include "content/common/content_security_policy_header.h"
55 #include "content/common/frame_messages.h" 54 #include "content/common/frame_messages.h"
56 #include "content/common/frame_replication_state.h" 55 #include "content/common/frame_replication_state.h"
57 #include "content/common/gpu/client/context_provider_command_buffer.h" 56 #include "content/common/gpu/client/context_provider_command_buffer.h"
58 #include "content/common/input_messages.h" 57 #include "content/common/input_messages.h"
59 #include "content/common/navigation_params.h" 58 #include "content/common/navigation_params.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 128 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
130 #include "content/renderer/renderer_webcolorchooser_impl.h" 129 #include "content/renderer/renderer_webcolorchooser_impl.h"
131 #include "content/renderer/savable_resources.h" 130 #include "content/renderer/savable_resources.h"
132 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" 131 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h"
133 #include "content/renderer/shared_worker_repository.h" 132 #include "content/renderer/shared_worker_repository.h"
134 #include "content/renderer/skia_benchmarking_extension.h" 133 #include "content/renderer/skia_benchmarking_extension.h"
135 #include "content/renderer/stats_collection_controller.h" 134 #include "content/renderer/stats_collection_controller.h"
136 #include "content/renderer/web_frame_utils.h" 135 #include "content/renderer/web_frame_utils.h"
137 #include "content/renderer/web_ui_extension.h" 136 #include "content/renderer/web_ui_extension.h"
138 #include "content/renderer/websharedworker_proxy.h" 137 #include "content/renderer/websharedworker_proxy.h"
138 #include "content/renderer/websockethandle_impl.h"
139 #include "crypto/sha2.h" 139 #include "crypto/sha2.h"
140 #include "gin/modules/module_registry.h" 140 #include "gin/modules/module_registry.h"
141 #include "media/audio/audio_output_device.h" 141 #include "media/audio/audio_output_device.h"
142 #include "media/base/audio_renderer_mixer_input.h" 142 #include "media/base/audio_renderer_mixer_input.h"
143 #include "media/base/cdm_factory.h" 143 #include "media/base/cdm_factory.h"
144 #include "media/base/decoder_factory.h" 144 #include "media/base/decoder_factory.h"
145 #include "media/base/media.h" 145 #include "media/base/media.h"
146 #include "media/base/media_log.h" 146 #include "media/base/media_log.h"
147 #include "media/base/media_switches.h" 147 #include "media/base/media_switches.h"
148 #include "media/blink/url_index.h" 148 #include "media/blink/url_index.h"
(...skipping 4131 matching lines...) Expand 10 before | Expand all | Expand 10 after
4280 } 4280 }
4281 ChildThreadImpl::current()->quota_dispatcher()->RequestStorageQuota( 4281 ChildThreadImpl::current()->quota_dispatcher()->RequestStorageQuota(
4282 render_view_->GetRoutingID(), 4282 render_view_->GetRoutingID(),
4283 blink::WebStringToGURL(origin.toString()), 4283 blink::WebStringToGURL(origin.toString()),
4284 static_cast<storage::StorageType>(type), 4284 static_cast<storage::StorageType>(type),
4285 requested_size, 4285 requested_size,
4286 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 4286 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
4287 } 4287 }
4288 4288
4289 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { 4289 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) {
4290 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle); 4290 // Here, we override the InterfaceProvider to that of the RenderFrame so that
4291 impl->set_render_frame_id(routing_id_); 4291 // the WebSocket instance will have context about what RenderFrame it is
4292 // associated with. This enables any security UI to be shown relative to the
Adam Rice 2016/07/08 04:03:11 Extreme nitpick: We have a policy of never showing
4293 // corresponding browser tab.
4294 static_cast<WebSocketHandleImpl*>(handle)->SetInterfaceProvider(
4295 GetRemoteInterfaces()->GetWeakPtr());
4292 } 4296 }
4293 4297
4294 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { 4298 blink::WebPresentationClient* RenderFrameImpl::presentationClient() {
4295 if (!presentation_dispatcher_) 4299 if (!presentation_dispatcher_)
4296 presentation_dispatcher_ = new PresentationDispatcher(this); 4300 presentation_dispatcher_ = new PresentationDispatcher(this);
4297 return presentation_dispatcher_; 4301 return presentation_dispatcher_;
4298 } 4302 }
4299 4303
4300 blink::WebPushClient* RenderFrameImpl::pushClient() { 4304 blink::WebPushClient* RenderFrameImpl::pushClient() {
4301 if (!push_messaging_dispatcher_) 4305 if (!push_messaging_dispatcher_)
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
6328 // event target. Potentially a Pepper plugin will receive the event. 6332 // event target. Potentially a Pepper plugin will receive the event.
6329 // In order to tell whether a plugin gets the last mouse event and which it 6333 // In order to tell whether a plugin gets the last mouse event and which it
6330 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6334 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6331 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6335 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6332 // |pepper_last_mouse_event_target_|. 6336 // |pepper_last_mouse_event_target_|.
6333 pepper_last_mouse_event_target_ = nullptr; 6337 pepper_last_mouse_event_target_ = nullptr;
6334 #endif 6338 #endif
6335 } 6339 }
6336 6340
6337 } // namespace content 6341 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698