| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 StringBuilder url; | 394 StringBuilder url; |
| 395 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr))); | 395 url.append(stripLeadingAndTrailingHTMLSpaces(fastGetAttribute(hrefAttr))); |
| 396 appendServerMapMousePosition(url, event); | 396 appendServerMapMousePosition(url, event); |
| 397 KURL completedURL = document().completeURL(url.toString()); | 397 KURL completedURL = document().completeURL(url.toString()); |
| 398 | 398 |
| 399 // Schedule the ping before the frame load. Prerender in Chrome may kill the | 399 // Schedule the ping before the frame load. Prerender in Chrome may kill the |
| 400 // renderer as soon as the navigation is sent out. | 400 // renderer as soon as the navigation is sent out. |
| 401 sendPings(completedURL); | 401 sendPings(completedURL); |
| 402 | 402 |
| 403 ResourceRequest request(completedURL); | 403 ResourceRequest request(completedURL); |
| 404 request.setUIStartTime(event->platformTimeStamp()); | 404 request.setUIStartTime( |
| 405 (event->platformTimeStamp() - TimeTicks()).InSecondsF()); |
| 405 request.setInputPerfMetricReportPolicy( | 406 request.setInputPerfMetricReportPolicy( |
| 406 InputToLoadPerfMetricReportPolicy::ReportLink); | 407 InputToLoadPerfMetricReportPolicy::ReportLink); |
| 407 | 408 |
| 408 ReferrerPolicy policy; | 409 ReferrerPolicy policy; |
| 409 if (hasAttribute(referrerpolicyAttr) && | 410 if (hasAttribute(referrerpolicyAttr) && |
| 410 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( | 411 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( |
| 411 fastGetAttribute(referrerpolicyAttr), &policy) && | 412 fastGetAttribute(referrerpolicyAttr), &policy) && |
| 412 !hasRel(RelationNoReferrer)) { | 413 !hasRel(RelationNoReferrer)) { |
| 413 request.setHTTPReferrer(SecurityPolicy::generateReferrer( | 414 request.setHTTPReferrer(SecurityPolicy::generateReferrer( |
| 414 policy, completedURL, document().outgoingReferrer())); | 415 policy, completedURL, document().outgoingReferrer())); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 } | 475 } |
| 475 | 476 |
| 476 HTMLAnchorElement::NavigationHintSender* | 477 HTMLAnchorElement::NavigationHintSender* |
| 477 HTMLAnchorElement::ensureNavigationHintSender() { | 478 HTMLAnchorElement::ensureNavigationHintSender() { |
| 478 if (!m_navigationHintSender) | 479 if (!m_navigationHintSender) |
| 479 m_navigationHintSender = NavigationHintSender::create(this); | 480 m_navigationHintSender = NavigationHintSender::create(this); |
| 480 return m_navigationHintSender; | 481 return m_navigationHintSender; |
| 481 } | 482 } |
| 482 | 483 |
| 483 } // namespace blink | 484 } // namespace blink |
| OLD | NEW |