| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 void setEncodedSize(size_t); | 321 void setEncodedSize(size_t); |
| 322 void setDecodedSize(size_t); | 322 void setDecodedSize(size_t); |
| 323 void didAccessDecodedData(); | 323 void didAccessDecodedData(); |
| 324 | 324 |
| 325 void finishPendingClients(); | 325 void finishPendingClients(); |
| 326 | 326 |
| 327 virtual void didAddClient(ResourceClient*); | 327 virtual void didAddClient(ResourceClient*); |
| 328 void willAddClientOrObserver(PreloadReferencePolicy); | 328 void willAddClientOrObserver(PreloadReferencePolicy); |
| 329 | 329 |
| 330 // |this| object may be dead after didRemoveClientOrObserver(). | |
| 331 void didRemoveClientOrObserver(); | 330 void didRemoveClientOrObserver(); |
| 332 virtual void allClientsAndObserversRemoved(); | 331 virtual void allClientsAndObserversRemoved(); |
| 333 | 332 |
| 334 bool hasClient(ResourceClient* client) { | 333 bool hasClient(ResourceClient* client) { |
| 335 return m_clients.contains(client) || | 334 return m_clients.contains(client) || |
| 336 m_clientsAwaitingCallback.contains(client) || | 335 m_clientsAwaitingCallback.contains(client) || |
| 337 m_finishedClients.contains(client); | 336 m_finishedClients.contains(client); |
| 338 } | 337 } |
| 339 | 338 |
| 340 struct RedirectPair { | 339 struct RedirectPair { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 }; | 464 }; |
| 466 | 465 |
| 467 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 466 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 468 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 467 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 469 resource->getType() == Resource::typeName, \ | 468 resource->getType() == Resource::typeName, \ |
| 470 resource.getType() == Resource::typeName); | 469 resource.getType() == Resource::typeName); |
| 471 | 470 |
| 472 } // namespace blink | 471 } // namespace blink |
| 473 | 472 |
| 474 #endif | 473 #endif |
| OLD | NEW |