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

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

Issue 7647003: Update routing id of pending resource requests for reparented iframes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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"
144 #include "webkit/plugins/npapi/default_plugin_shared.h" 145 #include "webkit/plugins/npapi/default_plugin_shared.h"
145 #include "webkit/plugins/npapi/plugin_list.h" 146 #include "webkit/plugins/npapi/plugin_list.h"
146 #include "webkit/plugins/npapi/webplugin_delegate.h" 147 #include "webkit/plugins/npapi/webplugin_delegate.h"
147 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" 148 #include "webkit/plugins/npapi/webplugin_delegate_impl.h"
148 #include "webkit/plugins/npapi/webplugin_impl.h" 149 #include "webkit/plugins/npapi/webplugin_impl.h"
149 #include "webkit/plugins/npapi/webview_plugin.h" 150 #include "webkit/plugins/npapi/webview_plugin.h"
150 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" 151 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h"
151 152
152 #if defined(OS_WIN) 153 #if defined(OS_WIN)
153 // TODO(port): these files are currently Windows only because they concern: 154 // TODO(port): these files are currently Windows only because they concern:
(...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after
2811 } 2812 }
2812 2813
2813 void RenderView::didRunInsecureContent( 2814 void RenderView::didRunInsecureContent(
2814 WebFrame* frame, const WebSecurityOrigin& origin, const WebURL& target) { 2815 WebFrame* frame, const WebSecurityOrigin& origin, const WebURL& target) {
2815 Send(new ViewHostMsg_DidRunInsecureContent( 2816 Send(new ViewHostMsg_DidRunInsecureContent(
2816 routing_id_, 2817 routing_id_,
2817 origin.toString().utf8(), 2818 origin.toString().utf8(),
2818 target)); 2819 target));
2819 } 2820 }
2820 2821
2822 void RenderView::didAdoptURLLoader(WebKit::WebURLLoader* loader) {
2823 webkit_glue::WebURLLoaderImpl* loaderImpl =
jam 2011/08/15 16:31:02 nit: loader_impl
Dmitry Titov 2011/08/15 20:50:10 Done.
2824 static_cast<webkit_glue::WebURLLoaderImpl*>(loader);
2825 loaderImpl->UpdateRoutingId(routing_id_);
2826 }
2827
2821 void RenderView::didExhaustMemoryAvailableForScript(WebFrame* frame) { 2828 void RenderView::didExhaustMemoryAvailableForScript(WebFrame* frame) {
2822 Send(new ViewHostMsg_JSOutOfMemory(routing_id_)); 2829 Send(new ViewHostMsg_JSOutOfMemory(routing_id_));
2823 } 2830 }
2824 2831
2825 void RenderView::didCreateScriptContext(WebFrame* frame) { 2832 void RenderView::didCreateScriptContext(WebFrame* frame) {
2826 content::GetContentClient()->renderer()->DidCreateScriptContext(frame); 2833 content::GetContentClient()->renderer()->DidCreateScriptContext(frame);
2827 } 2834 }
2828 2835
2829 void RenderView::didDestroyScriptContext(WebFrame* frame) { 2836 void RenderView::didDestroyScriptContext(WebFrame* frame) {
2830 content::GetContentClient()->renderer()->DidDestroyScriptContext(frame); 2837 content::GetContentClient()->renderer()->DidDestroyScriptContext(frame);
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 } 4491 }
4485 #endif 4492 #endif
4486 4493
4487 void RenderView::OnContextMenuClosed( 4494 void RenderView::OnContextMenuClosed(
4488 const webkit_glue::CustomContextMenuContext& custom_context) { 4495 const webkit_glue::CustomContextMenuContext& custom_context) {
4489 if (custom_context.is_pepper_menu) 4496 if (custom_context.is_pepper_menu)
4490 pepper_delegate_.OnContextMenuClosed(custom_context); 4497 pepper_delegate_.OnContextMenuClosed(custom_context);
4491 else 4498 else
4492 context_menu_node_.reset(); 4499 context_menu_node_.reset();
4493 } 4500 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698