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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/child/appcache_dispatcher.h" | 9 #include "content/child/appcache/appcache_dispatcher.h" |
10 #include "content/child/fileapi/file_system_dispatcher.h" | 10 #include "content/child/fileapi/file_system_dispatcher.h" |
11 #include "content/child/fileapi/webfilesystem_callback_adapters.h" | 11 #include "content/child/fileapi/webfilesystem_callback_adapters.h" |
12 #include "content/child/quota_dispatcher.h" | 12 #include "content/child/quota_dispatcher.h" |
13 #include "content/child/request_extra_data.h" | 13 #include "content/child/request_extra_data.h" |
14 #include "content/common/socket_stream_handle_data.h" | 14 #include "content/common/socket_stream_handle_data.h" |
15 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
16 #include "content/public/common/content_constants.h" | 16 #include "content/public/common/content_constants.h" |
17 #include "content/public/common/url_constants.h" | 17 #include "content/public/common/url_constants.h" |
18 #include "content/public/renderer/content_renderer_client.h" | 18 #include "content/public/renderer/content_renderer_client.h" |
19 #include "content/public/renderer/document_state.h" | 19 #include "content/public/renderer/document_state.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 using WebKit::WebSecurityOrigin; | 58 using WebKit::WebSecurityOrigin; |
59 using WebKit::WebStorageQuotaCallbacks; | 59 using WebKit::WebStorageQuotaCallbacks; |
60 using WebKit::WebString; | 60 using WebKit::WebString; |
61 using WebKit::WebURL; | 61 using WebKit::WebURL; |
62 using WebKit::WebURLError; | 62 using WebKit::WebURLError; |
63 using WebKit::WebURLRequest; | 63 using WebKit::WebURLRequest; |
64 using WebKit::WebURLResponse; | 64 using WebKit::WebURLResponse; |
65 using WebKit::WebUserGestureIndicator; | 65 using WebKit::WebUserGestureIndicator; |
66 using WebKit::WebVector; | 66 using WebKit::WebVector; |
67 using WebKit::WebView; | 67 using WebKit::WebView; |
68 | |
69 using appcache::WebApplicationCacheHostImpl; | |
70 using base::Time; | 68 using base::Time; |
71 using base::TimeDelta; | 69 using base::TimeDelta; |
72 | |
73 using webkit_glue::WebURLResponseExtraDataImpl; | 70 using webkit_glue::WebURLResponseExtraDataImpl; |
74 | 71 |
75 namespace content { | 72 namespace content { |
76 | 73 |
77 static RenderFrameImpl* (*g_create_render_frame_impl)(RenderViewImpl*, int32) = | 74 static RenderFrameImpl* (*g_create_render_frame_impl)(RenderViewImpl*, int32) = |
78 NULL; | 75 NULL; |
79 | 76 |
80 // static | 77 // static |
81 RenderFrameImpl* RenderFrameImpl::Create( | 78 RenderFrameImpl* RenderFrameImpl::Create(RenderViewImpl* render_view, |
82 RenderViewImpl* render_view, | 79 int32 routing_id) { |
83 int32 routing_id) { | |
84 DCHECK(routing_id != MSG_ROUTING_NONE); | 80 DCHECK(routing_id != MSG_ROUTING_NONE); |
85 | 81 |
86 RenderFrameImpl* render_frame = NULL; | 82 RenderFrameImpl* render_frame = NULL; |
87 if (g_create_render_frame_impl) | 83 if (g_create_render_frame_impl) |
88 render_frame = g_create_render_frame_impl(render_view, routing_id); | 84 render_frame = g_create_render_frame_impl(render_view, routing_id); |
89 else | 85 else |
90 render_frame = new RenderFrameImpl(render_view, routing_id); | 86 render_frame = new RenderFrameImpl(render_view, routing_id); |
91 | 87 |
92 return render_frame; | 88 return render_frame; |
93 } | 89 } |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 | 891 |
896 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, | 892 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, |
897 int arb_robustness_status_code) { | 893 int arb_robustness_status_code) { |
898 Send(new ViewHostMsg_DidLose3DContext( | 894 Send(new ViewHostMsg_DidLose3DContext( |
899 GURL(frame->top()->document().securityOrigin().toString()), | 895 GURL(frame->top()->document().securityOrigin().toString()), |
900 THREE_D_API_TYPE_WEBGL, | 896 THREE_D_API_TYPE_WEBGL, |
901 arb_robustness_status_code)); | 897 arb_robustness_status_code)); |
902 } | 898 } |
903 | 899 |
904 } // namespace content | 900 } // namespace content |
OLD | NEW |