OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
6 | 6 |
7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 bool isPurgeable() const; | 234 bool isPurgeable() const; |
235 bool wasPurged() const; | 235 bool wasPurged() const; |
236 | 236 |
237 // This is used by the archive machinery to get at a purged resource without | 237 // This is used by the archive machinery to get at a purged resource without |
238 // triggering a load. We should make it protected again if we can find a | 238 // triggering a load. We should make it protected again if we can find a |
239 // better way to handle the archive case. | 239 // better way to handle the archive case. |
240 bool makePurgeable(bool purgeable); | 240 bool makePurgeable(bool purgeable); |
241 | 241 |
242 virtual void didSendData(unsigned long long /* bytesSent */, unsigned long l
ong /* totalBytesToBeSent */) { } | 242 virtual void didSendData(unsigned long long /* bytesSent */, unsigned long l
ong /* totalBytesToBeSent */) { } |
243 virtual void didDownloadData(int) { } | 243 virtual void didDownloadData(int); |
244 | 244 |
245 double loadFinishTime() const { return m_loadFinishTime; } | 245 double loadFinishTime() const { return m_loadFinishTime; } |
246 | 246 |
247 virtual bool canReuse(const ResourceRequest&) const { return true; } | 247 virtual bool canReuse(const ResourceRequest&) const { return true; } |
248 | 248 |
249 protected: | 249 protected: |
250 virtual void checkNotify(); | 250 virtual void checkNotify(); |
251 virtual void finishOnePart(); | 251 virtual void finishOnePart(); |
252 | 252 |
253 void setEncodedSize(unsigned); | 253 void setEncodedSize(unsigned); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 // If this field is non-null, the resource has a proxy for checking whether
it is still up to date (see m_resourceToRevalidate). | 353 // If this field is non-null, the resource has a proxy for checking whether
it is still up to date (see m_resourceToRevalidate). |
354 Resource* m_proxyResource; | 354 Resource* m_proxyResource; |
355 | 355 |
356 // These handles will need to be updated to point to the m_resourceToRevalid
ate in case we get 304 response. | 356 // These handles will need to be updated to point to the m_resourceToRevalid
ate in case we get 304 response. |
357 HashSet<ResourcePtrBase*> m_handlesToRevalidate; | 357 HashSet<ResourcePtrBase*> m_handlesToRevalidate; |
358 }; | 358 }; |
359 | 359 |
360 } | 360 } |
361 | 361 |
362 #endif | 362 #endif |
OLD | NEW |