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(); |
65 | 68 |
66 void setDefersLoading(bool); | 69 void setDefersLoading(bool); |
67 bool defersLoading() const { return m_defersLoading; } | 70 bool defersLoading() const { return m_defersLoading; } |
68 | 71 |
69 unsigned long identifier() const { return m_identifier; } | 72 unsigned long identifier() const { return m_identifier; } |
70 | 73 |
71 void releaseResources(); | 74 void releaseResources(); |
72 | 75 |
73 void didChangePriority(ResourceLoadPriority); | 76 void didChangePriority(ResourceLoadPriority); |
74 | 77 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 }; | 141 }; |
139 | 142 |
140 CachedResource* m_resource; | 143 CachedResource* m_resource; |
141 ResourceLoaderState m_state; | 144 ResourceLoaderState m_state; |
142 OwnPtr<RequestCountTracker> m_requestCountTracker; | 145 OwnPtr<RequestCountTracker> m_requestCountTracker; |
143 }; | 146 }; |
144 | 147 |
145 } | 148 } |
146 | 149 |
147 #endif | 150 #endif |
OLD | NEW |