OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |