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 20 matching lines...) Expand all Loading... |
31 #ifndef FrameFetchContext_h | 31 #ifndef FrameFetchContext_h |
32 #define FrameFetchContext_h | 32 #define FrameFetchContext_h |
33 | 33 |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "core/fetch/FetchContext.h" | 35 #include "core/fetch/FetchContext.h" |
36 #include "core/fetch/ResourceFetcher.h" | 36 #include "core/fetch/ResourceFetcher.h" |
37 #include "core/frame/csp/ContentSecurityPolicy.h" | 37 #include "core/frame/csp/ContentSecurityPolicy.h" |
38 #include "core/loader/LinkLoader.h" | 38 #include "core/loader/LinkLoader.h" |
39 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
40 #include "platform/network/ResourceRequest.h" | 40 #include "platform/network/ResourceRequest.h" |
| 41 #include "wtf/Forward.h" |
41 | 42 |
42 namespace blink { | 43 namespace blink { |
43 | 44 |
44 class Document; | 45 class Document; |
45 class DocumentLoader; | 46 class DocumentLoader; |
46 class LocalFrame; | 47 class LocalFrame; |
47 class ResourceError; | 48 class ResourceError; |
48 class ResourceResponse; | 49 class ResourceResponse; |
49 | 50 |
50 class CORE_EXPORT FrameFetchContext final : public FetchContext { | 51 class CORE_EXPORT FrameFetchContext final : public FetchContext { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 double finishTime, | 106 double finishTime, |
106 int64_t encodedDataLength) override; | 107 int64_t encodedDataLength) override; |
107 void dispatchDidFail(unsigned long identifier, | 108 void dispatchDidFail(unsigned long identifier, |
108 const ResourceError&, | 109 const ResourceError&, |
109 int64_t encodedDataLength, | 110 int64_t encodedDataLength, |
110 bool isInternalRequest) override; | 111 bool isInternalRequest) override; |
111 | 112 |
112 bool shouldLoadNewResource(Resource::Type) const override; | 113 bool shouldLoadNewResource(Resource::Type) const override; |
113 void willStartLoadingResource(unsigned long identifier, | 114 void willStartLoadingResource(unsigned long identifier, |
114 ResourceRequest&, | 115 ResourceRequest&, |
115 Resource::Type) override; | 116 Resource::Type, |
| 117 const AtomicString& fetchInitiatorName, |
| 118 bool forPreload) override; |
116 void didLoadResource(Resource*) override; | 119 void didLoadResource(Resource*) override; |
117 | 120 |
118 void addResourceTiming(const ResourceTimingInfo&) override; | 121 void addResourceTiming(const ResourceTimingInfo&) override; |
119 bool allowImage(bool imagesEnabled, const KURL&) const override; | 122 bool allowImage(bool imagesEnabled, const KURL&) const override; |
120 ResourceRequestBlockedReason canRequest( | 123 ResourceRequestBlockedReason canRequest( |
121 Resource::Type, | 124 Resource::Type, |
122 const ResourceRequest&, | 125 const ResourceRequest&, |
123 const KURL&, | 126 const KURL&, |
124 const ResourceLoaderOptions&, | 127 const ResourceLoaderOptions&, |
125 bool forPreload, | 128 bool forPreload, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 187 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
185 // currently leak because ComputedStyle and its data are not on the heap. | 188 // currently leak because ComputedStyle and its data are not on the heap. |
186 // See crbug.com/383860 for details. | 189 // See crbug.com/383860 for details. |
187 WeakMember<Document> m_document; | 190 WeakMember<Document> m_document; |
188 Member<DocumentLoader> m_documentLoader; | 191 Member<DocumentLoader> m_documentLoader; |
189 }; | 192 }; |
190 | 193 |
191 } // namespace blink | 194 } // namespace blink |
192 | 195 |
193 #endif | 196 #endif |
OLD | NEW |