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

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: (rebase) Created 4 years, 5 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 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&);

Powered by Google App Engine
This is Rietveld 408576698