| 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
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 Resource(const ResourceRequest&, Type); | 78 Resource(const ResourceRequest&, Type); |
| 79 #if ENABLE(OILPAN) | 79 #if ENABLE(OILPAN) |
| 80 virtual ~Resource(); | 80 virtual ~Resource(); |
| 81 #else | 81 #else |
| 82 protected: | 82 protected: |
| 83 // Only deleteIfPossible should delete this. | 83 // Only deleteIfPossible should delete this. |
| 84 virtual ~Resource(); | 84 virtual ~Resource(); |
| 85 public: | 85 public: |
| 86 #endif | 86 #endif |
| 87 virtual void dispose(); | 87 virtual void dispose(); |
| 88 virtual void trace(Visitor*); | |
| 89 static unsigned instanceCount() { return s_instanceCount; } | 88 static unsigned instanceCount() { return s_instanceCount; } |
| 90 | 89 |
| 91 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&); | 90 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&); |
| 92 | 91 |
| 93 virtual void setEncoding(const String&) { } | 92 virtual void setEncoding(const String&) { } |
| 94 virtual String encoding() const { return String(); } | 93 virtual String encoding() const { return String(); } |
| 95 virtual void appendData(const char*, int); | 94 virtual void appendData(const char*, int); |
| 96 virtual void error(Resource::Status); | 95 virtual void error(Resource::Status); |
| 97 | 96 |
| 98 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn
chronousCacheHit = needsSynchronousCacheHit; } | 97 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn
chronousCacheHit = needsSynchronousCacheHit; } |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 const char* ResourceTypeName(Resource::Type); | 349 const char* ResourceTypeName(Resource::Type); |
| 351 #endif | 350 #endif |
| 352 | 351 |
| 353 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 352 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 354 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ | 353 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ |
| 355 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } | 354 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } |
| 356 | 355 |
| 357 } | 356 } |
| 358 | 357 |
| 359 #endif | 358 #endif |
| OLD | NEW |