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 26 matching lines...) Expand all Loading... |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "platform/loader/fetch/FetchContext.h" | 38 #include "platform/loader/fetch/FetchContext.h" |
39 #include "platform/loader/fetch/FetchRequest.h" | 39 #include "platform/loader/fetch/FetchRequest.h" |
40 #include "platform/loader/fetch/ResourceFetcher.h" | 40 #include "platform/loader/fetch/ResourceFetcher.h" |
41 #include "platform/loader/fetch/ResourceRequest.h" | 41 #include "platform/loader/fetch/ResourceRequest.h" |
42 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 class ClientHintsPreferences; | 46 class ClientHintsPreferences; |
| 47 class ContentSettingsClient; |
47 class Document; | 48 class Document; |
48 class DocumentLoader; | 49 class DocumentLoader; |
| 50 class LocalFrame; |
49 class LocalFrameClient; | 51 class LocalFrameClient; |
50 class LocalFrame; | |
51 class ResourceError; | 52 class ResourceError; |
52 class ResourceResponse; | 53 class ResourceResponse; |
53 | 54 |
54 class CORE_EXPORT FrameFetchContext final : public FetchContext { | 55 class CORE_EXPORT FrameFetchContext final : public FetchContext { |
55 public: | 56 public: |
56 static ResourceFetcher* createFetcherFromDocumentLoader( | 57 static ResourceFetcher* createFetcherFromDocumentLoader( |
57 DocumentLoader* loader) { | 58 DocumentLoader* loader) { |
58 return ResourceFetcher::create(new FrameFetchContext(loader, nullptr)); | 59 return ResourceFetcher::create(new FrameFetchContext(loader, nullptr)); |
59 } | 60 } |
60 static ResourceFetcher* createFetcherFromDocument(Document* document) { | 61 static ResourceFetcher* createFetcherFromDocument(Document* document) { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 175 |
175 // m_documentLoader is null when loading resources from an HTML import | 176 // m_documentLoader is null when loading resources from an HTML import |
176 // and in such cases we use the document loader of the importing frame. | 177 // and in such cases we use the document loader of the importing frame. |
177 // Convenient accessors below can be used to transparently access the | 178 // Convenient accessors below can be used to transparently access the |
178 // relevant document loader or frame in either cases without null-checks. | 179 // relevant document loader or frame in either cases without null-checks. |
179 // TODO(kinuko): Remove constness, these return non-const members. | 180 // TODO(kinuko): Remove constness, these return non-const members. |
180 DocumentLoader* masterDocumentLoader() const; | 181 DocumentLoader* masterDocumentLoader() const; |
181 LocalFrame* frame() const; | 182 LocalFrame* frame() const; |
182 LocalFrameClient* localFrameClient() const; | 183 LocalFrameClient* localFrameClient() const; |
183 | 184 |
| 185 ContentSettingsClient* contentSettingsClient() const; |
| 186 |
184 LocalFrame* frameOfImportsController() const; | 187 LocalFrame* frameOfImportsController() const; |
185 | 188 |
186 void printAccessDeniedMessage(const KURL&) const; | 189 void printAccessDeniedMessage(const KURL&) const; |
187 ResourceRequestBlockedReason canRequestInternal( | 190 ResourceRequestBlockedReason canRequestInternal( |
188 Resource::Type, | 191 Resource::Type, |
189 const ResourceRequest&, | 192 const ResourceRequest&, |
190 const KURL&, | 193 const KURL&, |
191 const ResourceLoaderOptions&, | 194 const ResourceLoaderOptions&, |
192 SecurityViolationReportingPolicy, | 195 SecurityViolationReportingPolicy, |
193 FetchRequest::OriginRestriction, | 196 FetchRequest::OriginRestriction, |
(...skipping 11 matching lines...) Expand all Loading... |
205 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 208 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
206 // currently leak because ComputedStyle and its data are not on the heap. | 209 // currently leak because ComputedStyle and its data are not on the heap. |
207 // See crbug.com/383860 for details. | 210 // See crbug.com/383860 for details. |
208 WeakMember<Document> m_document; | 211 WeakMember<Document> m_document; |
209 Member<DocumentLoader> m_documentLoader; | 212 Member<DocumentLoader> m_documentLoader; |
210 }; | 213 }; |
211 | 214 |
212 } // namespace blink | 215 } // namespace blink |
213 | 216 |
214 #endif | 217 #endif |
OLD | NEW |