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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 ResourceLoaderState m_state; | 130 ResourceLoaderState m_state; |
135 | 131 |
136 // Used for sanity checking to make sure we don't experience illegal state | 132 // Used for sanity checking to make sure we don't experience illegal state |
137 // transitions. | 133 // transitions. |
138 ConnectionState m_connectionState; | 134 ConnectionState m_connectionState; |
139 }; | 135 }; |
140 | 136 |
141 } | 137 } |
142 | 138 |
143 #endif | 139 #endif |
OLD | NEW |