| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); | 339 void didAccessDecodedData(); |
| 340 | 340 |
| 341 void finishPendingClients(); | 341 void finishPendingClients(); |
| 342 | 342 |
| 343 virtual void didAddClient(ResourceClient*); | 343 virtual void didAddClient(ResourceClient*); |
| 344 void willAddClientOrObserver(PreloadReferencePolicy); | 344 void willAddClientOrObserver(PreloadReferencePolicy); |
| 345 | 345 |
| 346 // |this| object may be dead after didRemoveClientOrObserver(). | |
| 347 void didRemoveClientOrObserver(); | 346 void didRemoveClientOrObserver(); |
| 348 virtual void allClientsAndObserversRemoved(); | 347 virtual void allClientsAndObserversRemoved(); |
| 349 | 348 |
| 350 bool hasClient(ResourceClient* client) { | 349 bool hasClient(ResourceClient* client) { |
| 351 return m_clients.contains(client) || | 350 return m_clients.contains(client) || |
| 352 m_clientsAwaitingCallback.contains(client) || | 351 m_clientsAwaitingCallback.contains(client) || |
| 353 m_finishedClients.contains(client); | 352 m_finishedClients.contains(client); |
| 354 } | 353 } |
| 355 | 354 |
| 356 struct RedirectPair { | 355 struct RedirectPair { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 }; | 481 }; |
| 483 | 482 |
| 484 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 483 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 485 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 484 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 486 resource->getType() == Resource::typeName, \ | 485 resource->getType() == Resource::typeName, \ |
| 487 resource.getType() == Resource::typeName); | 486 resource.getType() == Resource::typeName); |
| 488 | 487 |
| 489 } // namespace blink | 488 } // namespace blink |
| 490 | 489 |
| 491 #endif | 490 #endif |
| OLD | NEW |