Index: third_party/WebKit/Source/core/fetch/Resource.h |
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h |
index b659b3ea967c9ed86ecf67d2d8a4ec41dac8491e..f1b0970d5115f539aa42524632989bd2986c83e7 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.h |
+++ b/third_party/WebKit/Source/core/fetch/Resource.h |
@@ -26,6 +26,7 @@ |
#include "core/CoreExport.h" |
#include "core/fetch/CachedMetadataHandler.h" |
#include "core/fetch/ResourceLoaderOptions.h" |
+#include "platform/SharedBuffer.h" |
#include "platform/Timer.h" |
#include "platform/network/ResourceError.h" |
#include "platform/network/ResourceLoadPriority.h" |
@@ -49,7 +50,6 @@ class ResourceClient; |
class ResourceTimingInfo; |
class ResourceLoader; |
class SecurityOrigin; |
-class SharedBuffer; |
// A resource that is held in the cache. Classes who want to use this object should derive |
// from ResourceClient, to get the function calls in case the requested data has arrived. |
@@ -176,7 +176,7 @@ public: |
bool isEligibleForIntegrityCheck(SecurityOrigin*) const; |
- SharedBuffer* resourceBuffer() const { return m_data.get(); } |
+ virtual PassRefPtr<SharedBuffer> resourceBuffer() const { return m_data; } |
void setResourceBuffer(PassRefPtr<SharedBuffer>); |
virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); |