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 void didChangePriority(ResourceLoadPriority); | 73 void didChangePriority(ResourceLoadPriority); |
77 | 74 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 }; | 138 }; |
142 | 139 |
143 CachedResource* m_resource; | 140 CachedResource* m_resource; |
144 ResourceLoaderState m_state; | 141 ResourceLoaderState m_state; |
145 OwnPtr<RequestCountTracker> m_requestCountTracker; | 142 OwnPtr<RequestCountTracker> m_requestCountTracker; |
146 }; | 143 }; |
147 | 144 |
148 } | 145 } |
149 | 146 |
150 #endif | 147 #endif |
OLD | NEW |