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

Unified Diff: Source/platform/SharedBuffer.h

Issue 1011113003: Fix potential bug in FastSharedBufferReader::getConsecutiveData (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: back to v6 plus define Created 5 years, 8 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
« no previous file with comments | « Source/config.h ('k') | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/SharedBuffer.h
diff --git a/Source/platform/SharedBuffer.h b/Source/platform/SharedBuffer.h
index 70946e7d8217059d53e8c5bbed0cb9788e32323e..4b1834e7330e8a93d7d9c12ff92d79242bd01d99 100644
--- a/Source/platform/SharedBuffer.h
+++ b/Source/platform/SharedBuffer.h
@@ -39,6 +39,8 @@ namespace blink {
class PLATFORM_EXPORT SharedBuffer : public RefCounted<SharedBuffer> {
public:
+ static const unsigned kSegmentSize = 0x1000;
+
static PassRefPtr<SharedBuffer> create() { return adoptRef(new SharedBuffer); }
static PassRefPtr<SharedBuffer> create(size_t size) { return adoptRef(new SharedBuffer(size)); }
static PassRefPtr<SharedBuffer> create(const char* c, int i) { return adoptRef(new SharedBuffer(c, i)); }
« no previous file with comments | « Source/config.h ('k') | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698