Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: Source/core/loader/cache/CachedResourceClient.h

Issue 15556002: Refactoring: Generalize CachedSVGDocument for non-SVG use. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Resolved the conflict. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/cache/CachedDocument.cpp ('k') | Source/core/loader/cache/CachedResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698