| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_view.h" | 5 #include "content/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 #include "webkit/glue/form_field.h" | 134 #include "webkit/glue/form_field.h" |
| 135 #include "webkit/glue/glue_serialize.h" | 135 #include "webkit/glue/glue_serialize.h" |
| 136 #include "webkit/glue/media/video_renderer_impl.h" | 136 #include "webkit/glue/media/video_renderer_impl.h" |
| 137 #include "webkit/glue/password_form_dom_manager.h" | 137 #include "webkit/glue/password_form_dom_manager.h" |
| 138 #include "webkit/glue/request_extra_data.h" | 138 #include "webkit/glue/request_extra_data.h" |
| 139 #include "webkit/glue/webaccessibility.h" | 139 #include "webkit/glue/webaccessibility.h" |
| 140 #include "webkit/glue/webdropdata.h" | 140 #include "webkit/glue/webdropdata.h" |
| 141 #include "webkit/glue/webkit_constants.h" | 141 #include "webkit/glue/webkit_constants.h" |
| 142 #include "webkit/glue/webkit_glue.h" | 142 #include "webkit/glue/webkit_glue.h" |
| 143 #include "webkit/glue/webmediaplayer_impl.h" | 143 #include "webkit/glue/webmediaplayer_impl.h" |
| 144 #include "webkit/glue/weburlloader_impl.h" | |
| 145 #include "webkit/plugins/npapi/default_plugin_shared.h" | 144 #include "webkit/plugins/npapi/default_plugin_shared.h" |
| 146 #include "webkit/plugins/npapi/plugin_list.h" | 145 #include "webkit/plugins/npapi/plugin_list.h" |
| 147 #include "webkit/plugins/npapi/webplugin_delegate.h" | 146 #include "webkit/plugins/npapi/webplugin_delegate.h" |
| 148 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 147 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
| 149 #include "webkit/plugins/npapi/webplugin_impl.h" | 148 #include "webkit/plugins/npapi/webplugin_impl.h" |
| 150 #include "webkit/plugins/npapi/webview_plugin.h" | 149 #include "webkit/plugins/npapi/webview_plugin.h" |
| 151 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" | 150 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" |
| 152 | 151 |
| 153 #if defined(OS_WIN) | 152 #if defined(OS_WIN) |
| 154 // TODO(port): these files are currently Windows only because they concern: | 153 // TODO(port): these files are currently Windows only because they concern: |
| (...skipping 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2820 } | 2819 } |
| 2821 | 2820 |
| 2822 void RenderView::didRunInsecureContent( | 2821 void RenderView::didRunInsecureContent( |
| 2823 WebFrame* frame, const WebSecurityOrigin& origin, const WebURL& target) { | 2822 WebFrame* frame, const WebSecurityOrigin& origin, const WebURL& target) { |
| 2824 Send(new ViewHostMsg_DidRunInsecureContent( | 2823 Send(new ViewHostMsg_DidRunInsecureContent( |
| 2825 routing_id_, | 2824 routing_id_, |
| 2826 origin.toString().utf8(), | 2825 origin.toString().utf8(), |
| 2827 target)); | 2826 target)); |
| 2828 } | 2827 } |
| 2829 | 2828 |
| 2830 void RenderView::didAdoptURLLoader(WebKit::WebURLLoader* loader) { | |
| 2831 webkit_glue::WebURLLoaderImpl* loader_impl = | |
| 2832 static_cast<webkit_glue::WebURLLoaderImpl*>(loader); | |
| 2833 loader_impl->UpdateRoutingId(routing_id_); | |
| 2834 } | |
| 2835 | |
| 2836 void RenderView::didExhaustMemoryAvailableForScript(WebFrame* frame) { | 2829 void RenderView::didExhaustMemoryAvailableForScript(WebFrame* frame) { |
| 2837 Send(new ViewHostMsg_JSOutOfMemory(routing_id_)); | 2830 Send(new ViewHostMsg_JSOutOfMemory(routing_id_)); |
| 2838 } | 2831 } |
| 2839 | 2832 |
| 2840 void RenderView::didCreateScriptContext(WebFrame* frame) { | 2833 void RenderView::didCreateScriptContext(WebFrame* frame) { |
| 2841 content::GetContentClient()->renderer()->DidCreateScriptContext(frame); | 2834 content::GetContentClient()->renderer()->DidCreateScriptContext(frame); |
| 2842 } | 2835 } |
| 2843 | 2836 |
| 2844 void RenderView::didDestroyScriptContext(WebFrame* frame) { | 2837 void RenderView::didDestroyScriptContext(WebFrame* frame) { |
| 2845 content::GetContentClient()->renderer()->DidDestroyScriptContext(frame); | 2838 content::GetContentClient()->renderer()->DidDestroyScriptContext(frame); |
| (...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4548 } | 4541 } |
| 4549 #endif | 4542 #endif |
| 4550 | 4543 |
| 4551 void RenderView::OnContextMenuClosed( | 4544 void RenderView::OnContextMenuClosed( |
| 4552 const webkit_glue::CustomContextMenuContext& custom_context) { | 4545 const webkit_glue::CustomContextMenuContext& custom_context) { |
| 4553 if (custom_context.is_pepper_menu) | 4546 if (custom_context.is_pepper_menu) |
| 4554 pepper_delegate_.OnContextMenuClosed(custom_context); | 4547 pepper_delegate_.OnContextMenuClosed(custom_context); |
| 4555 else | 4548 else |
| 4556 context_menu_node_.reset(); | 4549 context_menu_node_.reset(); |
| 4557 } | 4550 } |
| OLD | NEW |