| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/child/appcache/appcache_dispatcher.h" | 10 #include "content/child/appcache/appcache_dispatcher.h" |
| 11 #include "content/child/quota_dispatcher.h" | 11 #include "content/child/quota_dispatcher.h" |
| 12 #include "content/child/request_extra_data.h" | 12 #include "content/child/request_extra_data.h" |
| 13 #include "content/common/socket_stream_handle_data.h" | 13 #include "content/common/socket_stream_handle_data.h" |
| 14 #include "content/common/swapped_out_messages.h" | 14 #include "content/common/swapped_out_messages.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/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
| 18 #include "content/public/common/url_constants.h" | 18 #include "content/public/common/url_constants.h" |
| 19 #include "content/public/renderer/content_renderer_client.h" | 19 #include "content/public/renderer/content_renderer_client.h" |
| 20 #include "content/public/renderer/document_state.h" | 20 #include "content/public/renderer/document_state.h" |
| 21 #include "content/public/renderer/navigation_state.h" | 21 #include "content/public/renderer/navigation_state.h" |
| 22 #include "content/renderer/browser_plugin/browser_plugin.h" | 22 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 23 #include "content/renderer/browser_plugin/browser_plugin_manager.h" | 23 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
| 24 #include "content/renderer/internal_document_state_data.h" | 24 #include "content/renderer/internal_document_state_data.h" |
| 25 #include "content/renderer/media/rtc_peer_connection_handler.h" | |
| 26 #include "content/renderer/render_thread_impl.h" | 25 #include "content/renderer/render_thread_impl.h" |
| 27 #include "content/renderer/render_view_impl.h" | 26 #include "content/renderer/render_view_impl.h" |
| 28 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 27 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
| 29 #include "content/renderer/websharedworker_proxy.h" | 28 #include "content/renderer/websharedworker_proxy.h" |
| 30 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
| 31 #include "net/http/http_util.h" | 30 #include "net/http/http_util.h" |
| 32 #include "third_party/WebKit/public/platform/WebString.h" | 31 #include "third_party/WebKit/public/platform/WebString.h" |
| 33 #include "third_party/WebKit/public/platform/WebURL.h" | 32 #include "third_party/WebKit/public/platform/WebURL.h" |
| 34 #include "third_party/WebKit/public/platform/WebURLError.h" | 33 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 35 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 34 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 36 #include "third_party/WebKit/public/platform/WebVector.h" | 35 #include "third_party/WebKit/public/platform/WebVector.h" |
| 37 #include "third_party/WebKit/public/web/WebDocument.h" | 36 #include "third_party/WebKit/public/web/WebDocument.h" |
| 38 #include "third_party/WebKit/public/web/WebFrame.h" | 37 #include "third_party/WebKit/public/web/WebFrame.h" |
| 39 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 38 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 40 #include "third_party/WebKit/public/web/WebPlugin.h" | 39 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 41 #include "third_party/WebKit/public/web/WebPluginParams.h" | 40 #include "third_party/WebKit/public/web/WebPluginParams.h" |
| 42 #include "third_party/WebKit/public/web/WebSearchableFormData.h" | 41 #include "third_party/WebKit/public/web/WebSearchableFormData.h" |
| 43 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 42 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
| 44 #include "third_party/WebKit/public/web/WebStorageQuotaCallbacks.h" | 43 #include "third_party/WebKit/public/web/WebStorageQuotaCallbacks.h" |
| 45 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 44 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
| 46 #include "third_party/WebKit/public/web/WebView.h" | 45 #include "third_party/WebKit/public/web/WebView.h" |
| 47 #include "webkit/child/weburlresponse_extradata_impl.h" | 46 #include "webkit/child/weburlresponse_extradata_impl.h" |
| 48 | 47 |
| 48 #if defined(ENABLE_WEBRTC) |
| 49 #include "content/renderer/media/rtc_peer_connection_handler.h" |
| 50 #endif |
| 51 |
| 49 using WebKit::WebDataSource; | 52 using WebKit::WebDataSource; |
| 50 using WebKit::WebDocument; | 53 using WebKit::WebDocument; |
| 51 using WebKit::WebFrame; | 54 using WebKit::WebFrame; |
| 52 using WebKit::WebNavigationPolicy; | 55 using WebKit::WebNavigationPolicy; |
| 53 using WebKit::WebPluginParams; | 56 using WebKit::WebPluginParams; |
| 54 using WebKit::WebReferrerPolicy; | 57 using WebKit::WebReferrerPolicy; |
| 55 using WebKit::WebSearchableFormData; | 58 using WebKit::WebSearchableFormData; |
| 56 using WebKit::WebSecurityOrigin; | 59 using WebKit::WebSecurityOrigin; |
| 57 using WebKit::WebStorageQuotaCallbacks; | 60 using WebKit::WebStorageQuotaCallbacks; |
| 58 using WebKit::WebString; | 61 using WebKit::WebString; |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 860 |
| 858 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, | 861 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, |
| 859 int arb_robustness_status_code) { | 862 int arb_robustness_status_code) { |
| 860 render_view_->Send(new ViewHostMsg_DidLose3DContext( | 863 render_view_->Send(new ViewHostMsg_DidLose3DContext( |
| 861 GURL(frame->top()->document().securityOrigin().toString()), | 864 GURL(frame->top()->document().securityOrigin().toString()), |
| 862 THREE_D_API_TYPE_WEBGL, | 865 THREE_D_API_TYPE_WEBGL, |
| 863 arb_robustness_status_code)); | 866 arb_robustness_status_code)); |
| 864 } | 867 } |
| 865 | 868 |
| 866 } // namespace content | 869 } // namespace content |
| OLD | NEW |