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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
5 rights reserved. | 5 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 }; | 46 }; |
47 | 47 |
48 virtual ~ResourceClient() {} | 48 virtual ~ResourceClient() {} |
49 virtual void notifyFinished(Resource*) {} | 49 virtual void notifyFinished(Resource*) {} |
50 | 50 |
51 static bool isExpectedType(ResourceClient*) { return true; } | 51 static bool isExpectedType(ResourceClient*) { return true; } |
52 virtual ResourceClientType getResourceClientType() const { | 52 virtual ResourceClientType getResourceClientType() const { |
53 return BaseResourceType; | 53 return BaseResourceType; |
54 } | 54 } |
55 | 55 |
| 56 virtual bool isReloadable() const { return true; } |
| 57 |
56 // Name for debugging, e.g. shown in memory-infra. | 58 // Name for debugging, e.g. shown in memory-infra. |
57 virtual String debugName() const = 0; | 59 virtual String debugName() const = 0; |
58 | 60 |
59 DEFINE_INLINE_VIRTUAL_TRACE() {} | 61 DEFINE_INLINE_VIRTUAL_TRACE() {} |
60 | 62 |
61 protected: | 63 protected: |
62 ResourceClient() {} | 64 ResourceClient() {} |
63 }; | 65 }; |
64 } // namespace blink | 66 } // namespace blink |
65 | 67 |
66 #endif | 68 #endif |
OLD | NEW |