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

Unified Diff: third_party/WebKit/Source/platform/SharedBufferChunkReader.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/platform/SharedBufferChunkReader.h
diff --git a/third_party/WebKit/Source/platform/SharedBufferChunkReader.h b/third_party/WebKit/Source/platform/SharedBufferChunkReader.h
index df66c0fc15c37db3d791861b800c32c709ccb267..2ecc03b6e2b163ea0f147f94ea755388d3fea8cf 100644
--- a/third_party/WebKit/Source/platform/SharedBufferChunkReader.h
+++ b/third_party/WebKit/Source/platform/SharedBufferChunkReader.h
@@ -45,8 +45,8 @@ class PLATFORM_EXPORT SharedBufferChunkReader final {
DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(SharedBufferChunkReader);
public:
- SharedBufferChunkReader(SharedBuffer*, const Vector<char>& separator);
- SharedBufferChunkReader(SharedBuffer*, const char* separator);
+ SharedBufferChunkReader(PassRefPtr<SharedBuffer>, const Vector<char>& separator);
+ SharedBufferChunkReader(PassRefPtr<SharedBuffer>, const char* separator);
void setSeparator(const Vector<char>&);
void setSeparator(const char*);
@@ -62,7 +62,7 @@ public:
size_t peek(Vector<char>&, size_t);
private:
- SharedBuffer* m_buffer;
+ RefPtr<SharedBuffer> m_buffer;
size_t m_bufferPosition;
const char* m_segment;
size_t m_segmentLength;

Powered by Google App Engine
This is Rietveld 408576698