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 28 matching lines...) Expand all Loading... | |
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/network/ResourceRequest.h" | 41 #include "platform/network/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 Document; | 47 class Document; |
48 class DocumentLoader; | 48 class DocumentLoader; |
49 class FrameLoaderClient; | 49 class LocalFrameClient; |
50 class LocalFrame; | 50 class LocalFrame; |
51 class ResourceError; | 51 class ResourceError; |
52 class ResourceResponse; | 52 class ResourceResponse; |
53 | 53 |
54 class CORE_EXPORT FrameFetchContext final : public FetchContext { | 54 class CORE_EXPORT FrameFetchContext final : public FetchContext { |
55 public: | 55 public: |
56 static ResourceFetcher* createFetcherFromDocumentLoader( | 56 static ResourceFetcher* createFetcherFromDocumentLoader( |
57 DocumentLoader* loader) { | 57 DocumentLoader* loader) { |
58 return ResourceFetcher::create(new FrameFetchContext(loader, nullptr)); | 58 return ResourceFetcher::create(new FrameFetchContext(loader, nullptr)); |
59 } | 59 } |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 | 170 |
171 DECLARE_VIRTUAL_TRACE(); | 171 DECLARE_VIRTUAL_TRACE(); |
172 | 172 |
173 private: | 173 private: |
174 FrameFetchContext(DocumentLoader*, Document*); | 174 FrameFetchContext(DocumentLoader*, Document*); |
175 inline DocumentLoader* masterDocumentLoader() const; | 175 inline DocumentLoader* masterDocumentLoader() const; |
176 | 176 |
177 LocalFrame* frameOfImportsController() const; | 177 LocalFrame* frameOfImportsController() const; |
178 LocalFrame* frame() const; | 178 LocalFrame* frame() const; |
179 | 179 |
180 FrameLoaderClient* frameLoaderClient() const; | 180 LocalFrameClient* localFrameClient() const; |
dcheng
2017/02/24 05:30:21
Ditto: fetch/loading implies local
| |
181 | 181 |
182 void printAccessDeniedMessage(const KURL&) const; | 182 void printAccessDeniedMessage(const KURL&) const; |
183 ResourceRequestBlockedReason canRequestInternal( | 183 ResourceRequestBlockedReason canRequestInternal( |
184 Resource::Type, | 184 Resource::Type, |
185 const ResourceRequest&, | 185 const ResourceRequest&, |
186 const KURL&, | 186 const KURL&, |
187 const ResourceLoaderOptions&, | 187 const ResourceLoaderOptions&, |
188 SecurityViolationReportingPolicy, | 188 SecurityViolationReportingPolicy, |
189 FetchRequest::OriginRestriction, | 189 FetchRequest::OriginRestriction, |
190 ResourceRequest::RedirectStatus) const; | 190 ResourceRequest::RedirectStatus) const; |
(...skipping 12 matching lines...) Expand all Loading... | |
203 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 203 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
204 // currently leak because ComputedStyle and its data are not on the heap. | 204 // currently leak because ComputedStyle and its data are not on the heap. |
205 // See crbug.com/383860 for details. | 205 // See crbug.com/383860 for details. |
206 WeakMember<Document> m_document; | 206 WeakMember<Document> m_document; |
207 Member<DocumentLoader> m_documentLoader; | 207 Member<DocumentLoader> m_documentLoader; |
208 }; | 208 }; |
209 | 209 |
210 } // namespace blink | 210 } // namespace blink |
211 | 211 |
212 #endif | 212 #endif |
OLD | NEW |