| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #define ResourceLoader_h | 30 #define ResourceLoader_h |
| 31 | 31 |
| 32 #include "core/fetch/ResourceLoaderOptions.h" | 32 #include "core/fetch/ResourceLoaderOptions.h" |
| 33 #include "platform/network/ResourceRequest.h" | 33 #include "platform/network/ResourceRequest.h" |
| 34 #include "public/platform/WebURLLoader.h" | 34 #include "public/platform/WebURLLoader.h" |
| 35 #include "public/platform/WebURLLoaderClient.h" | 35 #include "public/platform/WebURLLoaderClient.h" |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 class WebThreadedDataReceiver; | |
| 41 } | |
| 42 | |
| 43 namespace blink { | |
| 44 | 40 |
| 45 class Resource; | 41 class Resource; |
| 46 class KURL; | 42 class KURL; |
| 47 class ResourceError; | 43 class ResourceError; |
| 48 class ResourceLoaderHost; | 44 class ResourceLoaderHost; |
| 49 | 45 |
| 50 class ResourceLoader final : public RefCountedWillBeGarbageCollectedFinalized<Re
sourceLoader>, protected WebURLLoaderClient { | 46 class ResourceLoader final : public RefCountedWillBeGarbageCollectedFinalized<Re
sourceLoader>, protected WebURLLoaderClient { |
| 51 public: | 47 public: |
| 52 static PassRefPtrWillBeRawPtr<ResourceLoader> create(ResourceLoaderHost*, Re
source*, const ResourceRequest&, const ResourceLoaderOptions&); | 48 static PassRefPtrWillBeRawPtr<ResourceLoader> create(ResourceLoaderHost*, Re
source*, const ResourceRequest&, const ResourceLoaderOptions&); |
| 53 virtual ~ResourceLoader(); | 49 virtual ~ResourceLoader(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // Used for sanity checking to make sure we don't experience illegal state | 144 // Used for sanity checking to make sure we don't experience illegal state |
| 149 // transitions. | 145 // transitions. |
| 150 ConnectionState m_connectionState; | 146 ConnectionState m_connectionState; |
| 151 | 147 |
| 152 OwnPtr<RequestCountTracker> m_requestCountTracker; | 148 OwnPtr<RequestCountTracker> m_requestCountTracker; |
| 153 }; | 149 }; |
| 154 | 150 |
| 155 } | 151 } |
| 156 | 152 |
| 157 #endif | 153 #endif |
| OLD | NEW |