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
rights reserved. | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
5 | 5 |
6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 class CachedResource; | 32 class CachedResource; |
33 | 33 |
34 class CachedResourceClient { | 34 class CachedResourceClient { |
35 WTF_MAKE_FAST_ALLOCATED; | 35 WTF_MAKE_FAST_ALLOCATED; |
36 public: | 36 public: |
37 enum CachedResourceClientType { | 37 enum CachedResourceClientType { |
38 BaseResourceType, | 38 BaseResourceType, |
39 ImageType, | 39 ImageType, |
40 FontType, | 40 FontType, |
41 StyleSheetType, | 41 StyleSheetType, |
42 SVGDocumentType, | 42 DocumentType, |
43 RawResourceType | 43 RawResourceType |
44 }; | 44 }; |
45 | 45 |
46 virtual ~CachedResourceClient() { } | 46 virtual ~CachedResourceClient() { } |
47 virtual void notifyFinished(CachedResource*) { } | 47 virtual void notifyFinished(CachedResource*) { } |
48 virtual void deprecatedDidReceiveCachedResource(CachedResource*) { } | 48 virtual void deprecatedDidReceiveCachedResource(CachedResource*) { } |
49 | 49 |
50 static CachedResourceClientType expectedType() { return BaseResourceType; } | 50 static CachedResourceClientType expectedType() { return BaseResourceType; } |
51 virtual CachedResourceClientType resourceClientType() const { return expecte
dType(); } | 51 virtual CachedResourceClientType resourceClientType() const { return expecte
dType(); } |
52 | 52 |
53 protected: | 53 protected: |
54 CachedResourceClient() { } | 54 CachedResourceClient() { } |
55 }; | 55 }; |
56 } | 56 } |
57 | 57 |
58 #endif | 58 #endif |
OLD | NEW |