| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 sendPings(completedURL); | 405 sendPings(completedURL); |
| 406 | 406 |
| 407 ResourceRequest request(completedURL); | 407 ResourceRequest request(completedURL); |
| 408 request.setUIStartTime( | 408 request.setUIStartTime( |
| 409 (event->platformTimeStamp() - TimeTicks()).InSecondsF()); | 409 (event->platformTimeStamp() - TimeTicks()).InSecondsF()); |
| 410 request.setInputPerfMetricReportPolicy( | 410 request.setInputPerfMetricReportPolicy( |
| 411 InputToLoadPerfMetricReportPolicy::ReportLink); | 411 InputToLoadPerfMetricReportPolicy::ReportLink); |
| 412 | 412 |
| 413 ReferrerPolicy policy; | 413 ReferrerPolicy policy; |
| 414 if (hasAttribute(referrerpolicyAttr) && | 414 if (hasAttribute(referrerpolicyAttr) && |
| 415 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( | 415 SecurityPolicy::referrerPolicyFromString( |
| 416 fastGetAttribute(referrerpolicyAttr), &policy) && | 416 fastGetAttribute(referrerpolicyAttr), |
| 417 SupportReferrerPolicyLegacyKeywords, &policy) && |
| 417 !hasRel(RelationNoReferrer)) { | 418 !hasRel(RelationNoReferrer)) { |
| 418 UseCounter::count(document(), | 419 UseCounter::count(document(), |
| 419 UseCounter::HTMLAnchorElementReferrerPolicyAttribute); | 420 UseCounter::HTMLAnchorElementReferrerPolicyAttribute); |
| 420 request.setHTTPReferrer(SecurityPolicy::generateReferrer( | 421 request.setHTTPReferrer(SecurityPolicy::generateReferrer( |
| 421 policy, completedURL, document().outgoingReferrer())); | 422 policy, completedURL, document().outgoingReferrer())); |
| 422 } | 423 } |
| 423 | 424 |
| 424 if (hasAttribute(downloadAttr)) { | 425 if (hasAttribute(downloadAttr)) { |
| 425 request.setRequestContext(WebURLRequest::RequestContextDownload); | 426 request.setRequestContext(WebURLRequest::RequestContextDownload); |
| 426 bool isSameOrigin = | 427 bool isSameOrigin = |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 } | 483 } |
| 483 | 484 |
| 484 HTMLAnchorElement::NavigationHintSender* | 485 HTMLAnchorElement::NavigationHintSender* |
| 485 HTMLAnchorElement::ensureNavigationHintSender() { | 486 HTMLAnchorElement::ensureNavigationHintSender() { |
| 486 if (!m_navigationHintSender) | 487 if (!m_navigationHintSender) |
| 487 m_navigationHintSender = NavigationHintSender::create(this); | 488 m_navigationHintSender = NavigationHintSender::create(this); |
| 488 return m_navigationHintSender; | 489 return m_navigationHintSender; |
| 489 } | 490 } |
| 490 | 491 |
| 491 } // namespace blink | 492 } // namespace blink |
| OLD | NEW |