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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2054643003: Remove duplication of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on hiroshige's review Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
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 c524d3be6b5550d4f000f2465bdb1c3009004af7..53d9a7e5428f5969f18f6f8ddddff735fe6a3a69 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.
@@ -172,7 +172,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&);

Powered by Google App Engine
This is Rietveld 408576698