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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 329 |
330 virtual bool hasClientsOrObservers() const { | 330 virtual bool hasClientsOrObservers() const { |
331 return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || | 331 return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || |
332 !m_finishedClients.isEmpty(); | 332 !m_finishedClients.isEmpty(); |
333 } | 333 } |
334 virtual void destroyDecodedDataForFailedRevalidation() {} | 334 virtual void destroyDecodedDataForFailedRevalidation() {} |
335 | 335 |
336 void setEncodedSize(size_t); | 336 void setEncodedSize(size_t); |
337 void setEncodedSizeMemoryUsage(size_t); | 337 void setEncodedSizeMemoryUsage(size_t); |
338 void setDecodedSize(size_t); | 338 void setDecodedSize(size_t); |
339 void didAccessDecodedData(); | |
340 | 339 |
341 void finishPendingClients(); | 340 void finishPendingClients(); |
342 | 341 |
343 virtual void didAddClient(ResourceClient*); | 342 virtual void didAddClient(ResourceClient*); |
344 void willAddClientOrObserver(PreloadReferencePolicy); | 343 void willAddClientOrObserver(PreloadReferencePolicy); |
345 | 344 |
346 void didRemoveClientOrObserver(); | 345 void didRemoveClientOrObserver(); |
347 virtual void allClientsAndObserversRemoved(); | 346 virtual void allClientsAndObserversRemoved(); |
348 | 347 |
349 bool hasClient(ResourceClient* client) { | 348 bool hasClient(ResourceClient* client) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 }; | 480 }; |
482 | 481 |
483 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 482 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
484 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 483 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
485 resource->getType() == Resource::typeName, \ | 484 resource->getType() == Resource::typeName, \ |
486 resource.getType() == Resource::typeName); | 485 resource.getType() == Resource::typeName); |
487 | 486 |
488 } // namespace blink | 487 } // namespace blink |
489 | 488 |
490 #endif | 489 #endif |
OLD | NEW |