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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #include "platform/loader/fetch/ResourceLoadPriority.h" | 74 #include "platform/loader/fetch/ResourceLoadPriority.h" |
75 #include "platform/loader/fetch/ResourceLoadingLog.h" | 75 #include "platform/loader/fetch/ResourceLoadingLog.h" |
76 #include "platform/loader/fetch/ResourceTimingInfo.h" | 76 #include "platform/loader/fetch/ResourceTimingInfo.h" |
77 #include "platform/loader/fetch/UniqueIdentifier.h" | 77 #include "platform/loader/fetch/UniqueIdentifier.h" |
78 #include "platform/mhtml/MHTMLArchive.h" | 78 #include "platform/mhtml/MHTMLArchive.h" |
79 #include "platform/network/NetworkStateNotifier.h" | 79 #include "platform/network/NetworkStateNotifier.h" |
80 #include "platform/network/NetworkUtils.h" | 80 #include "platform/network/NetworkUtils.h" |
81 #include "platform/scheduler/renderer/web_view_scheduler.h" | 81 #include "platform/scheduler/renderer/web_view_scheduler.h" |
82 #include "platform/weborigin/SchemeRegistry.h" | 82 #include "platform/weborigin/SchemeRegistry.h" |
83 #include "platform/wtf/Vector.h" | 83 #include "platform/wtf/Vector.h" |
| 84 #include "public/platform/Platform.h" |
84 #include "public/platform/WebCachePolicy.h" | 85 #include "public/platform/WebCachePolicy.h" |
85 #include "public/platform/WebInsecureRequestPolicy.h" | 86 #include "public/platform/WebInsecureRequestPolicy.h" |
86 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" | 87 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
87 | 88 |
88 namespace blink { | 89 namespace blink { |
89 | 90 |
90 namespace { | 91 namespace { |
91 | 92 |
92 void EmitWarningForDocWriteScripts(const String& url, Document& document) { | 93 void EmitWarningForDocWriteScripts(const String& url, Document& document) { |
93 String message = | 94 String message = |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 } | 897 } |
897 | 898 |
898 bool FrameFetchContext::ShouldBlockFetchByMixedContentCheck( | 899 bool FrameFetchContext::ShouldBlockFetchByMixedContentCheck( |
899 const ResourceRequest& resource_request, | 900 const ResourceRequest& resource_request, |
900 const KURL& url, | 901 const KURL& url, |
901 SecurityViolationReportingPolicy reporting_policy) const { | 902 SecurityViolationReportingPolicy reporting_policy) const { |
902 return MixedContentChecker::ShouldBlockFetch(GetFrame(), resource_request, | 903 return MixedContentChecker::ShouldBlockFetch(GetFrame(), resource_request, |
903 url, reporting_policy); | 904 url, reporting_policy); |
904 } | 905 } |
905 | 906 |
| 907 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { |
| 908 return Platform::Current()->CreateURLLoader(); |
| 909 } |
| 910 |
906 DEFINE_TRACE(FrameFetchContext) { | 911 DEFINE_TRACE(FrameFetchContext) { |
907 visitor->Trace(document_loader_); | 912 visitor->Trace(document_loader_); |
908 BaseFetchContext::Trace(visitor); | 913 BaseFetchContext::Trace(visitor); |
909 } | 914 } |
910 | 915 |
911 } // namespace blink | 916 } // namespace blink |
OLD | NEW |