| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013, Intel Corporation | 3 * Copyright (C) 2013, Intel Corporation |
| 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * 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 14 matching lines...) Expand all Loading... |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef DocumentThreadableLoader_h | 32 #ifndef DocumentThreadableLoader_h |
| 33 #define DocumentThreadableLoader_h | 33 #define DocumentThreadableLoader_h |
| 34 | 34 |
| 35 #include "core/loader/FrameLoaderTypes.h" | |
| 36 #include "core/loader/ThreadableLoader.h" | 35 #include "core/loader/ThreadableLoader.h" |
| 37 #include "core/loader/cache/CachedRawResource.h" | 36 #include "core/loader/cache/CachedRawResource.h" |
| 38 #include "core/loader/cache/CachedResourceHandle.h" | 37 #include "core/loader/cache/CachedResourceHandle.h" |
| 39 #include "core/platform/Timer.h" | 38 #include "core/platform/Timer.h" |
| 40 #include "core/platform/network/ResourceError.h" | 39 #include "core/platform/network/ResourceError.h" |
| 41 #include <wtf/Forward.h> | 40 #include "wtf/Forward.h" |
| 42 #include <wtf/OwnPtr.h> | 41 #include "wtf/OwnPtr.h" |
| 43 #include <wtf/PassRefPtr.h> | 42 #include "wtf/PassRefPtr.h" |
| 44 #include <wtf/RefCounted.h> | 43 #include "wtf/RefCounted.h" |
| 45 #include <wtf/RefPtr.h> | 44 #include "wtf/text/WTFString.h" |
| 46 #include <wtf/text/WTFString.h> | |
| 47 | 45 |
| 48 namespace WebCore { | 46 namespace WebCore { |
| 49 class Document; | 47 class Document; |
| 50 class KURL; | 48 class KURL; |
| 51 class ResourceRequest; | 49 class ResourceRequest; |
| 52 class SecurityOrigin; | 50 class SecurityOrigin; |
| 53 class ThreadableLoaderClient; | 51 class ThreadableLoaderClient; |
| 54 | 52 |
| 55 class DocumentThreadableLoader : public RefCounted<DocumentThreadableLoader>
, public ThreadableLoader, private CachedRawResourceClient { | 53 class DocumentThreadableLoader : public RefCounted<DocumentThreadableLoader>
, public ThreadableLoader, private CachedRawResourceClient { |
| 56 WTF_MAKE_FAST_ALLOCATED; | 54 WTF_MAKE_FAST_ALLOCATED; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 bool m_sameOriginRequest; | 110 bool m_sameOriginRequest; |
| 113 bool m_simpleRequest; | 111 bool m_simpleRequest; |
| 114 bool m_async; | 112 bool m_async; |
| 115 OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Cont
rol preflight checks | 113 OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Cont
rol preflight checks |
| 116 Timer<DocumentThreadableLoader> m_timeoutTimer; | 114 Timer<DocumentThreadableLoader> m_timeoutTimer; |
| 117 }; | 115 }; |
| 118 | 116 |
| 119 } // namespace WebCore | 117 } // namespace WebCore |
| 120 | 118 |
| 121 #endif // DocumentThreadableLoader_h | 119 #endif // DocumentThreadableLoader_h |
| OLD | NEW |