| 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 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef DocumentLoader_h | 30 #ifndef DocumentLoader_h |
| 31 #define DocumentLoader_h | 31 #define DocumentLoader_h |
| 32 | 32 |
| 33 #include <memory> |
| 33 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 34 #include "core/dom/ViewportDescription.h" | 35 #include "core/dom/ViewportDescription.h" |
| 35 #include "core/dom/WeakIdentifierMap.h" | 36 #include "core/dom/WeakIdentifierMap.h" |
| 36 #include "core/frame/FrameTypes.h" | 37 #include "core/frame/FrameTypes.h" |
| 37 #include "core/frame/csp/ContentSecurityPolicy.h" | 38 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 38 #include "core/loader/DocumentLoadTiming.h" | 39 #include "core/loader/DocumentLoadTiming.h" |
| 39 #include "core/loader/DocumentWriter.h" | 40 #include "core/loader/DocumentWriter.h" |
| 40 #include "core/loader/FrameLoaderTypes.h" | 41 #include "core/loader/FrameLoaderTypes.h" |
| 41 #include "core/loader/LinkLoader.h" | 42 #include "core/loader/LinkLoader.h" |
| 42 #include "core/loader/NavigationPolicy.h" | 43 #include "core/loader/NavigationPolicy.h" |
| 43 #include "platform/SharedBuffer.h" | 44 #include "platform/SharedBuffer.h" |
| 44 #include "platform/loader/fetch/ClientHintsPreferences.h" | 45 #include "platform/loader/fetch/ClientHintsPreferences.h" |
| 45 #include "platform/loader/fetch/RawResource.h" | 46 #include "platform/loader/fetch/RawResource.h" |
| 46 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 47 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
| 47 #include "platform/loader/fetch/SubstituteData.h" | 48 #include "platform/loader/fetch/SubstituteData.h" |
| 48 #include "platform/network/ResourceError.h" | 49 #include "platform/network/ResourceError.h" |
| 49 #include "platform/network/ResourceRequest.h" | 50 #include "platform/network/ResourceRequest.h" |
| 50 #include "platform/network/ResourceResponse.h" | 51 #include "platform/network/ResourceResponse.h" |
| 51 #include "public/platform/WebLoadingBehaviorFlag.h" | 52 #include "public/platform/WebLoadingBehaviorFlag.h" |
| 52 #include "wtf/HashSet.h" | 53 #include "wtf/HashSet.h" |
| 53 #include "wtf/RefPtr.h" | 54 #include "wtf/RefPtr.h" |
| 54 #include <memory> | |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 class ApplicationCacheHost; | 58 class ApplicationCacheHost; |
| 59 class ResourceFetcher; | 59 class ResourceFetcher; |
| 60 class DocumentInit; | 60 class DocumentInit; |
| 61 class LocalFrame; | 61 class LocalFrame; |
| 62 class FrameLoader; | 62 class FrameLoader; |
| 63 class FrameLoaderClient; | 63 class FrameLoaderClient; |
| 64 class ResourceTimingInfo; | 64 class ResourceTimingInfo; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 double m_timeOfLastDataReceived; | 276 double m_timeOfLastDataReceived; |
| 277 | 277 |
| 278 Member<ApplicationCacheHost> m_applicationCacheHost; | 278 Member<ApplicationCacheHost> m_applicationCacheHost; |
| 279 | 279 |
| 280 Member<ContentSecurityPolicy> m_contentSecurityPolicy; | 280 Member<ContentSecurityPolicy> m_contentSecurityPolicy; |
| 281 ClientHintsPreferences m_clientHintsPreferences; | 281 ClientHintsPreferences m_clientHintsPreferences; |
| 282 InitialScrollState m_initialScrollState; | 282 InitialScrollState m_initialScrollState; |
| 283 | 283 |
| 284 bool m_wasBlockedAfterCSP; | 284 bool m_wasBlockedAfterCSP; |
| 285 | 285 |
| 286 enum State { | 286 enum State { NotStarted, Provisional, Committed, SentDidFinishLoad }; |
| 287 NotStarted, | |
| 288 Provisional, | |
| 289 Committed, | |
| 290 SentDidFinishLoad | |
| 291 }; | |
| 292 State m_state; | 287 State m_state; |
| 293 | 288 |
| 294 // Used to protect against reentrancy into dataReceived(). | 289 // Used to protect against reentrancy into dataReceived(). |
| 295 bool m_inDataReceived; | 290 bool m_inDataReceived; |
| 296 RefPtr<SharedBuffer> m_dataBuffer; | 291 RefPtr<SharedBuffer> m_dataBuffer; |
| 297 }; | 292 }; |
| 298 | 293 |
| 299 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 294 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 300 | 295 |
| 301 } // namespace blink | 296 } // namespace blink |
| 302 | 297 |
| 303 #endif // DocumentLoader_h | 298 #endif // DocumentLoader_h |
| OLD | NEW |