diff options
Diffstat (limited to 'Source/WebCore/loader/cache/CachedResourceClient.h')
-rw-r--r-- | Source/WebCore/loader/cache/CachedResourceClient.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/WebCore/loader/cache/CachedResourceClient.h b/Source/WebCore/loader/cache/CachedResourceClient.h index 402ff91a1..17c361d71 100644 --- a/Source/WebCore/loader/cache/CachedResourceClient.h +++ b/Source/WebCore/loader/cache/CachedResourceClient.h @@ -21,39 +21,33 @@ This class provides all functionality needed for loading images, style sheets and html pages from the web. It has a memory cache for these objects. */ - -#ifndef CachedResourceClient_h -#define CachedResourceClient_h - -#include <wtf/FastMalloc.h> +#pragma once namespace WebCore { + class CachedResource; class CachedResourceClient { - WTF_MAKE_FAST_ALLOCATED; public: enum CachedResourceClientType { BaseResourceType, ImageType, FontType, StyleSheetType, -#if ENABLE(SVG) SVGDocumentType, -#endif RawResourceType }; virtual ~CachedResourceClient() { } - virtual void notifyFinished(CachedResource*) { } - virtual void deprecatedDidReceiveCachedResource(CachedResource*) { } - + virtual void notifyFinished(CachedResource&) { } + virtual void deprecatedDidReceiveCachedResource(CachedResource&) { } + virtual bool isXMLHttpRequest() const { return false; } + static CachedResourceClientType expectedType() { return BaseResourceType; } virtual CachedResourceClientType resourceClientType() const { return expectedType(); } protected: CachedResourceClient() { } }; -} -#endif +} |