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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 bool wasScrolledByUser; | 139 bool wasScrolledByUser; |
140 bool didRestoreFromHistory; | 140 bool didRestoreFromHistory; |
141 }; | 141 }; |
142 InitialScrollState& initialScrollState() { return m_initialScrollState; } | 142 InitialScrollState& initialScrollState() { return m_initialScrollState; } |
143 | 143 |
144 bool loadingMultipartContent() const; | 144 bool loadingMultipartContent() const; |
145 | 145 |
146 Resource* startPreload(Resource::Type, FetchRequest&); | 146 Resource* startPreload(Resource::Type, FetchRequest&); |
147 | 147 |
| 148 void setProtect(bool shouldProtect) { m_shouldProtect = shouldProtect; } |
| 149 |
148 DECLARE_VIRTUAL_TRACE(); | 150 DECLARE_VIRTUAL_TRACE(); |
149 | 151 |
150 protected: | 152 protected: |
151 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); | 153 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); |
152 | 154 |
153 Vector<KURL> m_redirectChain; | 155 Vector<KURL> m_redirectChain; |
154 | 156 |
155 private: | 157 private: |
156 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Document
* ownerDocument, const DocumentInit&, const AtomicString& mimeType, const Atomic
String& encoding, bool dispatch, ParserSynchronizationPolicy); | 158 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Document
* ownerDocument, const DocumentInit&, const AtomicString& mimeType, const Atomic
String& encoding, bool dispatch, ParserSynchronizationPolicy); |
157 | 159 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 210 |
209 bool m_isClientRedirect; | 211 bool m_isClientRedirect; |
210 bool m_replacesCurrentHistoryItem; | 212 bool m_replacesCurrentHistoryItem; |
211 | 213 |
212 NavigationType m_navigationType; | 214 NavigationType m_navigationType; |
213 | 215 |
214 DocumentLoadTiming m_documentLoadTiming; | 216 DocumentLoadTiming m_documentLoadTiming; |
215 | 217 |
216 double m_timeOfLastDataReceived; | 218 double m_timeOfLastDataReceived; |
217 | 219 |
| 220 bool m_shouldProtect; |
| 221 |
218 PersistentWillBeMember<ApplicationCacheHost> m_applicationCacheHost; | 222 PersistentWillBeMember<ApplicationCacheHost> m_applicationCacheHost; |
219 | 223 |
220 RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy; | 224 RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy; |
221 ClientHintsPreferences m_clientHintsPreferences; | 225 ClientHintsPreferences m_clientHintsPreferences; |
222 InitialScrollState m_initialScrollState; | 226 InitialScrollState m_initialScrollState; |
223 | 227 |
224 enum State { | 228 enum State { |
225 NotStarted, | 229 NotStarted, |
226 Provisional, | 230 Provisional, |
227 Committed, | 231 Committed, |
228 DataReceived, | 232 DataReceived, |
229 MainResourceDone, | 233 MainResourceDone, |
230 SentDidFinishLoad | 234 SentDidFinishLoad |
231 }; | 235 }; |
232 State m_state; | 236 State m_state; |
233 | 237 |
234 // Used to protect against reentrancy into dataReceived(). | 238 // Used to protect against reentrancy into dataReceived(). |
235 bool m_inDataReceived; | 239 bool m_inDataReceived; |
236 RefPtr<SharedBuffer> m_dataBuffer; | 240 RefPtr<SharedBuffer> m_dataBuffer; |
237 }; | 241 }; |
238 | 242 |
239 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 243 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
240 | 244 |
241 } // namespace blink | 245 } // namespace blink |
242 | 246 |
243 #endif // DocumentLoader_h | 247 #endif // DocumentLoader_h |
OLD | NEW |