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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 } | 731 } |
732 | 732 |
733 void FrameFetchContext::DispatchDidBlockRequest( | 733 void FrameFetchContext::DispatchDidBlockRequest( |
734 const ResourceRequest& resource_request, | 734 const ResourceRequest& resource_request, |
735 const FetchInitiatorInfo& fetch_initiator_info, | 735 const FetchInitiatorInfo& fetch_initiator_info, |
736 ResourceRequestBlockedReason blocked_reason) const { | 736 ResourceRequestBlockedReason blocked_reason) const { |
737 probe::didBlockRequest(GetFrame(), resource_request, MasterDocumentLoader(), | 737 probe::didBlockRequest(GetFrame(), resource_request, MasterDocumentLoader(), |
738 fetch_initiator_info, blocked_reason); | 738 fetch_initiator_info, blocked_reason); |
739 } | 739 } |
740 | 740 |
741 void FrameFetchContext::ReportLocalLoadFailed(const KURL& url) const { | |
742 FrameLoader::ReportLocalLoadFailed(GetFrame(), url.ElidedString()); | |
743 } | |
744 | |
745 bool FrameFetchContext::ShouldBypassMainWorldCSP() const { | 741 bool FrameFetchContext::ShouldBypassMainWorldCSP() const { |
746 return GetFrame()->GetScriptController().ShouldBypassMainWorldCSP(); | 742 return GetFrame()->GetScriptController().ShouldBypassMainWorldCSP(); |
747 } | 743 } |
748 | 744 |
749 bool FrameFetchContext::IsSVGImageChromeClient() const { | 745 bool FrameFetchContext::IsSVGImageChromeClient() const { |
750 return GetFrame()->GetChromeClient().IsSVGImageChromeClient(); | 746 return GetFrame()->GetChromeClient().IsSVGImageChromeClient(); |
751 } | 747 } |
752 | 748 |
753 void FrameFetchContext::CountUsage(UseCounter::Feature feature) const { | 749 void FrameFetchContext::CountUsage(UseCounter::Feature feature) const { |
754 UseCounter::Count(GetFrame()->GetDocument(), feature); | 750 UseCounter::Count(GetFrame()->GetDocument(), feature); |
(...skipping 14 matching lines...) Expand all Loading... |
769 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { | 765 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { |
770 return Platform::Current()->CreateURLLoader(); | 766 return Platform::Current()->CreateURLLoader(); |
771 } | 767 } |
772 | 768 |
773 DEFINE_TRACE(FrameFetchContext) { | 769 DEFINE_TRACE(FrameFetchContext) { |
774 visitor->Trace(document_loader_); | 770 visitor->Trace(document_loader_); |
775 BaseFetchContext::Trace(visitor); | 771 BaseFetchContext::Trace(visitor); |
776 } | 772 } |
777 | 773 |
778 } // namespace blink | 774 } // namespace blink |
OLD | NEW |