OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 #include "platform/loader/fetch/ClientHintsPreferences.h" | 44 #include "platform/loader/fetch/ClientHintsPreferences.h" |
45 #include "platform/loader/fetch/RawResource.h" | 45 #include "platform/loader/fetch/RawResource.h" |
46 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 46 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
47 #include "platform/loader/fetch/SubstituteData.h" | 47 #include "platform/loader/fetch/SubstituteData.h" |
48 #include "platform/network/ResourceError.h" | 48 #include "platform/network/ResourceError.h" |
49 #include "platform/network/ResourceRequest.h" | 49 #include "platform/network/ResourceRequest.h" |
50 #include "platform/network/ResourceResponse.h" | 50 #include "platform/network/ResourceResponse.h" |
51 #include "public/platform/WebLoadingBehaviorFlag.h" | 51 #include "public/platform/WebLoadingBehaviorFlag.h" |
52 #include "wtf/HashSet.h" | 52 #include "wtf/HashSet.h" |
53 #include "wtf/RefPtr.h" | 53 #include "wtf/RefPtr.h" |
54 | |
54 #include <memory> | 55 #include <memory> |
55 | 56 |
56 namespace blink { | 57 namespace blink { |
57 | 58 |
58 class ApplicationCacheHost; | 59 class ApplicationCacheHost; |
59 class ResourceFetcher; | 60 class ResourceFetcher; |
60 class DocumentInit; | 61 class DocumentInit; |
61 class LocalFrame; | 62 class LocalFrame; |
63 class LocalFrameClient; | |
62 class FrameLoader; | 64 class FrameLoader; |
63 class FrameLoaderClient; | |
64 class ResourceTimingInfo; | 65 class ResourceTimingInfo; |
65 class WebDocumentSubresourceFilter; | 66 class WebDocumentSubresourceFilter; |
66 struct ViewportDescriptionWrapper; | 67 struct ViewportDescriptionWrapper; |
67 | 68 |
68 class CORE_EXPORT DocumentLoader | 69 class CORE_EXPORT DocumentLoader |
69 : public GarbageCollectedFinalized<DocumentLoader>, | 70 : public GarbageCollectedFinalized<DocumentLoader>, |
70 private RawResourceClient { | 71 private RawResourceClient { |
71 USING_GARBAGE_COLLECTED_MIXIN(DocumentLoader); | 72 USING_GARBAGE_COLLECTED_MIXIN(DocumentLoader); |
72 | 73 |
73 public: | 74 public: |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 ParserSynchronizationPolicy, | 201 ParserSynchronizationPolicy, |
201 const KURL& overridingURL = KURL()); | 202 const KURL& overridingURL = KURL()); |
202 | 203 |
203 void ensureWriter(const AtomicString& mimeType, | 204 void ensureWriter(const AtomicString& mimeType, |
204 const KURL& overridingURL = KURL()); | 205 const KURL& overridingURL = KURL()); |
205 void endWriting(); | 206 void endWriting(); |
206 | 207 |
207 // Use these method only where it's guaranteed that |m_frame| hasn't been | 208 // Use these method only where it's guaranteed that |m_frame| hasn't been |
208 // cleared. | 209 // cleared. |
209 FrameLoader& frameLoader() const; | 210 FrameLoader& frameLoader() const; |
210 FrameLoaderClient& frameLoaderClient() const; | 211 LocalFrameClient& localFrameClient() const; |
dcheng
2017/02/24 05:30:21
Minor naming nit: "local" is implied by "Document"
| |
211 | 212 |
212 void commitIfReady(); | 213 void commitIfReady(); |
213 void commitData(const char* bytes, size_t length); | 214 void commitData(const char* bytes, size_t length); |
214 void clearMainResourceHandle(); | 215 void clearMainResourceHandle(); |
215 | 216 |
216 bool maybeCreateArchive(); | 217 bool maybeCreateArchive(); |
217 | 218 |
218 void finishedLoading(double finishTime); | 219 void finishedLoading(double finishTime); |
219 void cancelLoadAfterCSPDenied(const ResourceResponse&); | 220 void cancelLoadAfterCSPDenied(const ResourceResponse&); |
220 | 221 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
292 // Used to protect against reentrancy into dataReceived(). | 293 // Used to protect against reentrancy into dataReceived(). |
293 bool m_inDataReceived; | 294 bool m_inDataReceived; |
294 RefPtr<SharedBuffer> m_dataBuffer; | 295 RefPtr<SharedBuffer> m_dataBuffer; |
295 }; | 296 }; |
296 | 297 |
297 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 298 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
298 | 299 |
299 } // namespace blink | 300 } // namespace blink |
300 | 301 |
301 #endif // DocumentLoader_h | 302 #endif // DocumentLoader_h |
OLD | NEW |