| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 return false; | 647 return false; |
| 648 info->setInitiatorType(frame()->deprecatedLocalOwner()->localName()); | 648 info->setInitiatorType(frame()->deprecatedLocalOwner()->localName()); |
| 649 return true; | 649 return true; |
| 650 } | 650 } |
| 651 | 651 |
| 652 void FrameFetchContext::sendImagePing(const KURL& url) | 652 void FrameFetchContext::sendImagePing(const KURL& url) |
| 653 { | 653 { |
| 654 PingLoader::loadImage(frame(), url); | 654 PingLoader::loadImage(frame(), url); |
| 655 } | 655 } |
| 656 | 656 |
| 657 void FrameFetchContext::addConsoleMessage(const String& message) const | 657 void FrameFetchContext::addConsoleMessage(const String& message, MessageLevel le
vel) const |
| 658 { | 658 { |
| 659 if (frame()->document()) | 659 if (frame()->document()) |
| 660 frame()->document()->addConsoleMessage(ConsoleMessage::create(JSMessageS
ource, ErrorMessageLevel, message)); | 660 frame()->document()->addConsoleMessage(ConsoleMessage::create(JSMessageS
ource, level, message)); |
| 661 } | 661 } |
| 662 | 662 |
| 663 SecurityOrigin* FrameFetchContext::getSecurityOrigin() const | 663 SecurityOrigin* FrameFetchContext::getSecurityOrigin() const |
| 664 { | 664 { |
| 665 return m_document ? m_document->getSecurityOrigin() : nullptr; | 665 return m_document ? m_document->getSecurityOrigin() : nullptr; |
| 666 } | 666 } |
| 667 | 667 |
| 668 void FrameFetchContext::upgradeInsecureRequest(ResourceRequest& resourceRequest) | 668 void FrameFetchContext::upgradeInsecureRequest(ResourceRequest& resourceRequest) |
| 669 { | 669 { |
| 670 frame()->loader().upgradeInsecureRequest(resourceRequest, m_document); | 670 frame()->loader().upgradeInsecureRequest(resourceRequest, m_document); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 } | 800 } |
| 801 | 801 |
| 802 DEFINE_TRACE(FrameFetchContext) | 802 DEFINE_TRACE(FrameFetchContext) |
| 803 { | 803 { |
| 804 visitor->trace(m_document); | 804 visitor->trace(m_document); |
| 805 visitor->trace(m_documentLoader); | 805 visitor->trace(m_documentLoader); |
| 806 FetchContext::trace(visitor); | 806 FetchContext::trace(visitor); |
| 807 } | 807 } |
| 808 | 808 |
| 809 } // namespace blink | 809 } // namespace blink |
| OLD | NEW |