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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 #include "platform/loader/fetch/Resource.h" | 72 #include "platform/loader/fetch/Resource.h" |
73 #include "platform/loader/fetch/ResourceLoadPriority.h" | 73 #include "platform/loader/fetch/ResourceLoadPriority.h" |
74 #include "platform/loader/fetch/ResourceLoadingLog.h" | 74 #include "platform/loader/fetch/ResourceLoadingLog.h" |
75 #include "platform/loader/fetch/ResourceTimingInfo.h" | 75 #include "platform/loader/fetch/ResourceTimingInfo.h" |
76 #include "platform/loader/fetch/UniqueIdentifier.h" | 76 #include "platform/loader/fetch/UniqueIdentifier.h" |
77 #include "platform/mhtml/MHTMLArchive.h" | 77 #include "platform/mhtml/MHTMLArchive.h" |
78 #include "platform/network/NetworkStateNotifier.h" | 78 #include "platform/network/NetworkStateNotifier.h" |
79 #include "platform/network/NetworkUtils.h" | 79 #include "platform/network/NetworkUtils.h" |
80 #include "platform/weborigin/SchemeRegistry.h" | 80 #include "platform/weborigin/SchemeRegistry.h" |
81 #include "platform/wtf/Vector.h" | 81 #include "platform/wtf/Vector.h" |
| 82 #include "public/platform/Platform.h" |
82 #include "public/platform/WebCachePolicy.h" | 83 #include "public/platform/WebCachePolicy.h" |
83 #include "public/platform/WebInsecureRequestPolicy.h" | 84 #include "public/platform/WebInsecureRequestPolicy.h" |
84 #include "public/platform/WebViewScheduler.h" | 85 #include "public/platform/WebViewScheduler.h" |
85 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" | 86 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
86 | 87 |
87 namespace blink { | 88 namespace blink { |
88 | 89 |
89 namespace { | 90 namespace { |
90 | 91 |
91 void EmitWarningForDocWriteScripts(const String& url, Document& document) { | 92 void EmitWarningForDocWriteScripts(const String& url, Document& document) { |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 !GetFrame()->IsMainFrame()) | 1075 !GetFrame()->IsMainFrame()) |
1075 return kResourceLoadPriorityVeryLow; | 1076 return kResourceLoadPriorityVeryLow; |
1076 | 1077 |
1077 return priority; | 1078 return priority; |
1078 } | 1079 } |
1079 | 1080 |
1080 RefPtr<WebTaskRunner> FrameFetchContext::LoadingTaskRunner() const { | 1081 RefPtr<WebTaskRunner> FrameFetchContext::LoadingTaskRunner() const { |
1081 return GetFrame()->FrameScheduler()->LoadingTaskRunner(); | 1082 return GetFrame()->FrameScheduler()->LoadingTaskRunner(); |
1082 } | 1083 } |
1083 | 1084 |
| 1085 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { |
| 1086 return Platform::Current()->CreateURLLoader(); |
| 1087 } |
| 1088 |
1084 DEFINE_TRACE(FrameFetchContext) { | 1089 DEFINE_TRACE(FrameFetchContext) { |
1085 visitor->Trace(document_loader_); | 1090 visitor->Trace(document_loader_); |
1086 BaseFetchContext::Trace(visitor); | 1091 BaseFetchContext::Trace(visitor); |
1087 } | 1092 } |
1088 | 1093 |
1089 } // namespace blink | 1094 } // namespace blink |
OLD | NEW |