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

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

Issue 2873503002: NOT YET READY: Improve granularity of window namespaces in Blink.
Patch Set: Rebasing... Created 3 years, 6 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after
3070 child_render_frame->blink_interface_provider_.get(), 3070 child_render_frame->blink_interface_provider_.get(),
3071 child_render_frame->blink_interface_registry_.get()); 3071 child_render_frame->blink_interface_registry_.get());
3072 child_render_frame->BindToWebFrame(web_frame); 3072 child_render_frame->BindToWebFrame(web_frame);
3073 3073
3074 child_render_frame->in_frame_tree_ = true; 3074 child_render_frame->in_frame_tree_ = true;
3075 child_render_frame->Initialize(); 3075 child_render_frame->Initialize();
3076 3076
3077 return web_frame; 3077 return web_frame;
3078 } 3078 }
3079 3079
3080 blink::WebFrame* RenderFrameImpl::FindFrame(const blink::WebString& name) {
3081 return GetContentClient()->renderer()->FindFrame(this->GetWebFrame(),
3082 name.Utf8());
3083 }
3084
3080 void RenderFrameImpl::DidChangeOpener(blink::WebFrame* opener) { 3085 void RenderFrameImpl::DidChangeOpener(blink::WebFrame* opener) {
3081 // Only a local frame should be able to update another frame's opener. 3086 // Only a local frame should be able to update another frame's opener.
3082 DCHECK(!opener || opener->IsWebLocalFrame()); 3087 DCHECK(!opener || opener->IsWebLocalFrame());
3083 3088
3084 int opener_routing_id = 3089 int opener_routing_id =
3085 opener ? RenderFrameImpl::FromWebFrame(opener->ToWebLocalFrame()) 3090 opener ? RenderFrameImpl::FromWebFrame(opener->ToWebLocalFrame())
3086 ->GetRoutingID() 3091 ->GetRoutingID()
3087 : MSG_ROUTING_NONE; 3092 : MSG_ROUTING_NONE;
3088 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id)); 3093 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id));
3089 } 3094 }
(...skipping 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after
6858 policy(info.default_policy), 6863 policy(info.default_policy),
6859 replaces_current_history_item(info.replaces_current_history_item), 6864 replaces_current_history_item(info.replaces_current_history_item),
6860 history_navigation_in_new_child_frame( 6865 history_navigation_in_new_child_frame(
6861 info.is_history_navigation_in_new_child_frame), 6866 info.is_history_navigation_in_new_child_frame),
6862 client_redirect(info.is_client_redirect), 6867 client_redirect(info.is_client_redirect),
6863 cache_disabled(info.is_cache_disabled), 6868 cache_disabled(info.is_cache_disabled),
6864 form(info.form), 6869 form(info.form),
6865 source_location(info.source_location) {} 6870 source_location(info.source_location) {}
6866 6871
6867 } // namespace content 6872 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698