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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 #include "wtf/HashSet.h" | 49 #include "wtf/HashSet.h" |
50 #include "wtf/RefPtr.h" | 50 #include "wtf/RefPtr.h" |
51 | 51 |
52 namespace blink { | 52 namespace blink { |
53 | 53 |
54 class ApplicationCacheHost; | 54 class ApplicationCacheHost; |
55 class ResourceFetcher; | 55 class ResourceFetcher; |
56 class DocumentInit; | 56 class DocumentInit; |
57 class LocalFrame; | 57 class LocalFrame; |
58 class FrameLoader; | 58 class FrameLoader; |
59 class LinkLoader; | |
Nate Chapin
2016/01/15 18:53:58
This can go away if startPreload() doesn't need a
Yoav Weiss
2016/01/15 21:40:25
true
| |
59 class MHTMLArchive; | 60 class MHTMLArchive; |
60 class ResourceLoader; | 61 class ResourceLoader; |
61 class ThreadedDataReceiver; | 62 class ThreadedDataReceiver; |
62 | 63 |
63 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFinali zed<DocumentLoader>, private RawResourceClient { | 64 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFinali zed<DocumentLoader>, private RawResourceClient { |
64 USING_FAST_MALLOC_WILL_BE_REMOVED(DocumentLoader); | 65 USING_FAST_MALLOC_WILL_BE_REMOVED(DocumentLoader); |
65 public: | 66 public: |
66 static PassRefPtrWillBeRawPtr<DocumentLoader> create(LocalFrame* frame, cons t ResourceRequest& request, const SubstituteData& data) | 67 static PassRefPtrWillBeRawPtr<DocumentLoader> create(LocalFrame* frame, cons t ResourceRequest& request, const SubstituteData& data) |
67 { | 68 { |
68 return adoptRefWillBeNoop(new DocumentLoader(frame, request, data)); | 69 return adoptRefWillBeNoop(new DocumentLoader(frame, request, data)); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 { | 140 { |
140 } | 141 } |
141 | 142 |
142 bool wasScrolledByUser; | 143 bool wasScrolledByUser; |
143 bool didRestoreFromHistory; | 144 bool didRestoreFromHistory; |
144 }; | 145 }; |
145 InitialScrollState& initialScrollState() { return m_initialScrollState; } | 146 InitialScrollState& initialScrollState() { return m_initialScrollState; } |
146 | 147 |
147 bool loadingMultipartContent() const; | 148 bool loadingMultipartContent() const; |
148 | 149 |
149 void startPreload(Resource::Type, FetchRequest&); | 150 ResourcePtr<Resource> startPreload(Resource::Type, FetchRequest&, LinkLoader *); |
150 | 151 |
151 DECLARE_VIRTUAL_TRACE(); | 152 DECLARE_VIRTUAL_TRACE(); |
152 | 153 |
153 protected: | 154 protected: |
154 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); | 155 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); |
155 | 156 |
156 Vector<KURL> m_redirectChain; | 157 Vector<KURL> m_redirectChain; |
157 | 158 |
158 private: | 159 private: |
159 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Document * ownerDocument, const DocumentInit&, const AtomicString& mimeType, const Atomic String& encoding, bool dispatch, ParserSynchronizationPolicy); | 160 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Document * ownerDocument, const DocumentInit&, const AtomicString& mimeType, const Atomic String& encoding, bool dispatch, ParserSynchronizationPolicy); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 // Used to protect against reentrancy into dataReceived(). | 243 // Used to protect against reentrancy into dataReceived(). |
243 bool m_inDataReceived; | 244 bool m_inDataReceived; |
244 RefPtr<SharedBuffer> m_dataBuffer; | 245 RefPtr<SharedBuffer> m_dataBuffer; |
245 }; | 246 }; |
246 | 247 |
247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 248 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
248 | 249 |
249 } // namespace blink | 250 } // namespace blink |
250 | 251 |
251 #endif // DocumentLoader_h | 252 #endif // DocumentLoader_h |
OLD | NEW |