summaryrefslogtreecommitdiff
path: root/Source/WebCore/loader/cache/CachedRawResourceClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/loader/cache/CachedRawResourceClient.h')
-rw-r--r--Source/WebCore/loader/cache/CachedRawResourceClient.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/WebCore/loader/cache/CachedRawResourceClient.h b/Source/WebCore/loader/cache/CachedRawResourceClient.h
index 3d7fd5e5c..2e9fac591 100644
--- a/Source/WebCore/loader/cache/CachedRawResourceClient.h
+++ b/Source/WebCore/loader/cache/CachedRawResourceClient.h
@@ -20,8 +20,7 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef CachedRawResourceClient_h
-#define CachedRawResourceClient_h
+#pragma once
#include "CachedResourceClient.h"
@@ -30,22 +29,23 @@ namespace WebCore {
class CachedResource;
class ResourceRequest;
class ResourceResponse;
+class ResourceTiming;
class CachedRawResourceClient : public CachedResourceClient {
public:
virtual ~CachedRawResourceClient() { }
static CachedResourceClientType expectedType() { return RawResourceType; }
- virtual CachedResourceClientType resourceClientType() const override { return expectedType(); }
-
- virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
- virtual void responseReceived(CachedResource*, const ResourceResponse&) { }
- virtual void dataReceived(CachedResource*, const char* /* data */, int /* length */) { }
- virtual void redirectReceived(CachedResource*, ResourceRequest&, const ResourceResponse&) { }
+ CachedResourceClientType resourceClientType() const override { return expectedType(); }
+
+ virtual void dataSent(CachedResource&, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
+ virtual void responseReceived(CachedResource&, const ResourceResponse&) { }
+ virtual bool shouldCacheResponse(CachedResource&, const ResourceResponse&) { return true; }
+ virtual void dataReceived(CachedResource&, const char* /* data */, int /* length */) { }
+ virtual void redirectReceived(CachedResource&, ResourceRequest&, const ResourceResponse&) { }
+ virtual void finishedTimingForWorkerLoad(CachedResource&, const ResourceTiming&) { }
#if USE(SOUP)
- virtual char* getOrCreateReadBuffer(CachedResource*, size_t /* requestedSize */, size_t& /* actualSize */) { return 0; }
+ virtual char* getOrCreateReadBuffer(CachedResource&, size_t /* requestedSize */, size_t& /* actualSize */) { return nullptr; }
#endif
};
}
-
-#endif // CachedRawResourceClient_h