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