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 | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 rights reserved. | 6 rights reserved. |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 void markClientFinished(ResourceClient*); | 341 void markClientFinished(ResourceClient*); |
342 | 342 |
343 virtual bool hasClientsOrObservers() const { | 343 virtual bool hasClientsOrObservers() const { |
344 return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || | 344 return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || |
345 !m_finishedClients.isEmpty(); | 345 !m_finishedClients.isEmpty(); |
346 } | 346 } |
347 virtual void destroyDecodedDataForFailedRevalidation() {} | 347 virtual void destroyDecodedDataForFailedRevalidation() {} |
348 | 348 |
349 void setEncodedSize(size_t); | 349 void setEncodedSize(size_t); |
350 void setDecodedSize(size_t); | 350 void setDecodedSize(size_t); |
351 void didAccessDecodedData(); | |
352 | 351 |
353 void finishPendingClients(); | 352 void finishPendingClients(); |
354 | 353 |
355 virtual void didAddClient(ResourceClient*); | 354 virtual void didAddClient(ResourceClient*); |
356 void willAddClientOrObserver(PreloadReferencePolicy); | 355 void willAddClientOrObserver(PreloadReferencePolicy); |
357 | 356 |
358 void didRemoveClientOrObserver(); | 357 void didRemoveClientOrObserver(); |
359 virtual void allClientsAndObserversRemoved(); | 358 virtual void allClientsAndObserversRemoved(); |
360 | 359 |
361 bool hasClient(ResourceClient* client) { | 360 bool hasClient(ResourceClient* client) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 }; | 492 }; |
494 | 493 |
495 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 494 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
496 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 495 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
497 resource->getType() == Resource::typeName, \ | 496 resource->getType() == Resource::typeName, \ |
498 resource.getType() == Resource::typeName); | 497 resource.getType() == Resource::typeName); |
499 | 498 |
500 } // namespace blink | 499 } // namespace blink |
501 | 500 |
502 #endif | 501 #endif |
OLD | NEW |