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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual ~ResourceLoader(); | 55 virtual ~ResourceLoader(); |
56 | 56 |
57 void cancel(); | 57 void cancel(); |
58 void cancel(const ResourceError&); | 58 void cancel(const ResourceError&); |
59 void cancelIfNotFinishing(); | 59 void cancelIfNotFinishing(); |
60 | 60 |
61 FrameLoader* frameLoader() const; | 61 FrameLoader* frameLoader() const; |
62 DocumentLoader* documentLoader() const { return m_documentLoader.get(); } | 62 DocumentLoader* documentLoader() const { return m_documentLoader.get(); } |
63 CachedResource* cachedResource() { return m_resource; } | 63 CachedResource* cachedResource() { return m_resource; } |
64 const ResourceRequest& originalRequest() const { return m_originalRequest; } | 64 const ResourceRequest& originalRequest() const { return m_originalRequest; } |
65 | |
66 ResourceError cancelledError(); | |
67 ResourceError cannotShowURLError(); | |
68 | 65 |
69 void setDefersLoading(bool); | 66 void setDefersLoading(bool); |
70 bool defersLoading() const { return m_defersLoading; } | 67 bool defersLoading() const { return m_defersLoading; } |
71 | 68 |
72 unsigned long identifier() const { return m_identifier; } | 69 unsigned long identifier() const { return m_identifier; } |
73 | 70 |
74 void releaseResources(); | 71 void releaseResources(); |
75 | 72 |
76 PassRefPtr<ResourceBuffer> resourceData(); | 73 PassRefPtr<ResourceBuffer> resourceData(); |
77 void clearResourceData(); | 74 void clearResourceData(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 }; | 150 }; |
154 | 151 |
155 CachedResource* m_resource; | 152 CachedResource* m_resource; |
156 ResourceLoaderState m_state; | 153 ResourceLoaderState m_state; |
157 OwnPtr<RequestCountTracker> m_requestCountTracker; | 154 OwnPtr<RequestCountTracker> m_requestCountTracker; |
158 }; | 155 }; |
159 | 156 |
160 } | 157 } |
161 | 158 |
162 #endif | 159 #endif |
OLD | NEW |