| 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 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
| 12 #include "base/debug/dump_without_crashing.h" | 12 #include "base/debug/dump_without_crashing.h" |
| 13 #include "base/i18n/char_iterator.h" | 13 #include "base/i18n/char_iterator.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/process/kill.h" | 15 #include "base/process/kill.h" |
| 16 #include "base/process/process.h" | 16 #include "base/process/process.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "content/child/appcache/appcache_dispatcher.h" | 19 #include "content/child/appcache/appcache_dispatcher.h" |
| 20 #include "content/child/plugin_messages.h" | 20 #include "content/child/plugin_messages.h" |
| 21 #include "content/child/quota_dispatcher.h" | 21 #include "content/child/quota_dispatcher.h" |
| 22 #include "content/child/request_extra_data.h" | 22 #include "content/child/request_extra_data.h" |
| 23 #include "content/child/service_worker/web_service_worker_provider_impl.h" | 23 #include "content/child/service_worker/web_service_worker_provider_impl.h" |
| 24 #include "content/child/web_socket_stream_handle_impl.h" | |
| 25 #include "content/common/frame_messages.h" | 24 #include "content/common/frame_messages.h" |
| 26 #include "content/common/socket_stream_handle_data.h" | 25 #include "content/common/socket_stream_handle_data.h" |
| 27 #include "content/common/swapped_out_messages.h" | 26 #include "content/common/swapped_out_messages.h" |
| 28 #include "content/common/view_messages.h" | 27 #include "content/common/view_messages.h" |
| 29 #include "content/public/common/bindings_policy.h" | 28 #include "content/public/common/bindings_policy.h" |
| 30 #include "content/public/common/content_constants.h" | 29 #include "content/public/common/content_constants.h" |
| 31 #include "content/public/common/content_switches.h" | 30 #include "content/public/common/content_switches.h" |
| 32 #include "content/public/common/context_menu_params.h" | 31 #include "content/public/common/context_menu_params.h" |
| 33 #include "content/public/common/url_constants.h" | 32 #include "content/public/common/url_constants.h" |
| 34 #include "content/public/common/url_utils.h" | 33 #include "content/public/common/url_utils.h" |
| (...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 return; | 1986 return; |
| 1988 } | 1987 } |
| 1989 ChildThread::current()->quota_dispatcher()->RequestStorageQuota( | 1988 ChildThread::current()->quota_dispatcher()->RequestStorageQuota( |
| 1990 render_view_->GetRoutingID(), GURL(origin.toString()), | 1989 render_view_->GetRoutingID(), GURL(origin.toString()), |
| 1991 static_cast<quota::StorageType>(type), requested_size, | 1990 static_cast<quota::StorageType>(type), requested_size, |
| 1992 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1991 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1993 } | 1992 } |
| 1994 | 1993 |
| 1995 void RenderFrameImpl::willOpenSocketStream( | 1994 void RenderFrameImpl::willOpenSocketStream( |
| 1996 blink::WebSocketStreamHandle* handle) { | 1995 blink::WebSocketStreamHandle* handle) { |
| 1997 WebSocketStreamHandleImpl* impl = | 1996 SocketStreamHandleData::AddToHandle(handle, routing_id_); |
| 1998 static_cast<WebSocketStreamHandleImpl*>(handle); | |
| 1999 impl->SetUserData(handle, new SocketStreamHandleData(routing_id_)); | |
| 2000 } | 1997 } |
| 2001 | 1998 |
| 2002 void RenderFrameImpl::willStartUsingPeerConnectionHandler( | 1999 void RenderFrameImpl::willStartUsingPeerConnectionHandler( |
| 2003 blink::WebFrame* frame, | 2000 blink::WebFrame* frame, |
| 2004 blink::WebRTCPeerConnectionHandler* handler) { | 2001 blink::WebRTCPeerConnectionHandler* handler) { |
| 2005 DCHECK(!frame_ || frame_ == frame); | 2002 DCHECK(!frame_ || frame_ == frame); |
| 2006 #if defined(ENABLE_WEBRTC) | 2003 #if defined(ENABLE_WEBRTC) |
| 2007 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame); | 2004 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame); |
| 2008 #endif | 2005 #endif |
| 2009 } | 2006 } |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2274 | 2271 |
| 2275 void RenderFrameImpl::didStartLoading() { | 2272 void RenderFrameImpl::didStartLoading() { |
| 2276 Send(new FrameHostMsg_DidStartLoading(routing_id_)); | 2273 Send(new FrameHostMsg_DidStartLoading(routing_id_)); |
| 2277 } | 2274 } |
| 2278 | 2275 |
| 2279 void RenderFrameImpl::didStopLoading() { | 2276 void RenderFrameImpl::didStopLoading() { |
| 2280 Send(new FrameHostMsg_DidStopLoading(routing_id_)); | 2277 Send(new FrameHostMsg_DidStopLoading(routing_id_)); |
| 2281 } | 2278 } |
| 2282 | 2279 |
| 2283 } // namespace content | 2280 } // namespace content |
| OLD | NEW |