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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 virtual void switchClientsToRevalidatedResource(); | 237 virtual void switchClientsToRevalidatedResource(); |
238 void clearResourceToRevalidate(); | 238 void clearResourceToRevalidate(); |
239 void updateResponseAfterRevalidation(const ResourceResponse& validatingRespo
nse); | 239 void updateResponseAfterRevalidation(const ResourceResponse& validatingRespo
nse); |
240 | 240 |
241 virtual void didSendData(unsigned long long /* bytesSent */, unsigned long l
ong /* totalBytesToBeSent */) { } | 241 virtual void didSendData(unsigned long long /* bytesSent */, unsigned long l
ong /* totalBytesToBeSent */) { } |
242 virtual void didDownloadData(int) { } | 242 virtual void didDownloadData(int) { } |
243 | 243 |
244 void setLoadFinishTime(double finishTime) { m_loadFinishTime = finishTime; } | 244 void setLoadFinishTime(double finishTime) { m_loadFinishTime = finishTime; } |
245 double loadFinishTime() const { return m_loadFinishTime; } | 245 double loadFinishTime() const { return m_loadFinishTime; } |
246 | 246 |
247 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | |
248 | |
249 virtual bool canReuse(const ResourceRequest&) const { return true; } | 247 virtual bool canReuse(const ResourceRequest&) const { return true; } |
250 | 248 |
251 protected: | 249 protected: |
252 virtual void checkNotify(); | 250 virtual void checkNotify(); |
253 virtual void finishOnePart(); | 251 virtual void finishOnePart(); |
254 | 252 |
255 void setEncodedSize(unsigned); | 253 void setEncodedSize(unsigned); |
256 void setDecodedSize(unsigned); | 254 void setDecodedSize(unsigned); |
257 void didAccessDecodedData(double timeStamp); | 255 void didAccessDecodedData(double timeStamp); |
258 | 256 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // If this field is non-null, the resource has a proxy for checking whether
it is still up to date (see m_resourceToRevalidate). | 349 // If this field is non-null, the resource has a proxy for checking whether
it is still up to date (see m_resourceToRevalidate). |
352 CachedResource* m_proxyResource; | 350 CachedResource* m_proxyResource; |
353 | 351 |
354 // These handles will need to be updated to point to the m_resourceToRevalid
ate in case we get 304 response. | 352 // These handles will need to be updated to point to the m_resourceToRevalid
ate in case we get 304 response. |
355 HashSet<CachedResourceHandleBase*> m_handlesToRevalidate; | 353 HashSet<CachedResourceHandleBase*> m_handlesToRevalidate; |
356 }; | 354 }; |
357 | 355 |
358 } | 356 } |
359 | 357 |
360 #endif | 358 #endif |
OLD | NEW |