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

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

Issue 23749006: Merge 222640 "Use the top-level URL for popup blocking." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2283 params.opener_id = routing_id_; 2283 params.opener_id = routing_id_;
2284 params.user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); 2284 params.user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
2285 if (GetContentClient()->renderer()->AllowPopup()) 2285 if (GetContentClient()->renderer()->AllowPopup())
2286 params.user_gesture = true; 2286 params.user_gesture = true;
2287 params.window_container_type = WindowFeaturesToContainerType(features); 2287 params.window_container_type = WindowFeaturesToContainerType(features);
2288 params.session_storage_namespace_id = session_storage_namespace_id_; 2288 params.session_storage_namespace_id = session_storage_namespace_id_;
2289 if (frame_name != "_blank") 2289 if (frame_name != "_blank")
2290 params.frame_name = frame_name; 2290 params.frame_name = frame_name;
2291 params.opener_frame_id = creator->identifier(); 2291 params.opener_frame_id = creator->identifier();
2292 params.opener_url = creator->document().url(); 2292 params.opener_url = creator->document().url();
2293 params.opener_top_level_frame_url = creator->top()->document().url();
2293 GURL security_url(creator->document().securityOrigin().toString().utf8()); 2294 GURL security_url(creator->document().securityOrigin().toString().utf8());
2294 if (!security_url.is_valid()) 2295 if (!security_url.is_valid())
2295 security_url = GURL(); 2296 security_url = GURL();
2296 params.opener_security_origin = security_url; 2297 params.opener_security_origin = security_url;
2297 params.opener_suppressed = creator->willSuppressOpenerInNewFrame(); 2298 params.opener_suppressed = creator->willSuppressOpenerInNewFrame();
2298 params.disposition = NavigationPolicyToDisposition(policy); 2299 params.disposition = NavigationPolicyToDisposition(policy);
2299 if (!request.isNull()) { 2300 if (!request.isNull()) {
2300 params.target_url = request.url(); 2301 params.target_url = request.url();
2301 params.referrer = GetReferrerFromRequest(creator, request); 2302 params.referrer = GetReferrerFromRequest(creator, request);
2302 } 2303 }
(...skipping 4253 matching lines...) Expand 10 before | Expand all | Expand 10 after
6556 WebURL url = icon_urls[i].iconURL(); 6557 WebURL url = icon_urls[i].iconURL();
6557 if (!url.isEmpty()) 6558 if (!url.isEmpty())
6558 urls.push_back(FaviconURL(url, 6559 urls.push_back(FaviconURL(url,
6559 ToFaviconType(icon_urls[i].iconType()))); 6560 ToFaviconType(icon_urls[i].iconType())));
6560 } 6561 }
6561 SendUpdateFaviconURL(urls); 6562 SendUpdateFaviconURL(urls);
6562 } 6563 }
6563 6564
6564 6565
6565 } // namespace content 6566 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698