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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.h

Issue 1405573003: Introduce StringImpl::createPreallocatedStatic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/wtf/text/StringImpl.h
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
index 5681b234d3b9d8251b1f97cceba8f63211807751..148be7e979b153d8e781954f6d128675e2e9b5d1 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
@@ -196,6 +196,7 @@ private:
public:
~StringImpl();
+ static StringImpl* createPreallocatedStatic(void* buffer, unsigned length, unsigned hash);
static StringImpl* createStatic(const char* string, unsigned length, unsigned hash);
static void reserveStaticStringsCapacityForSize(unsigned size);
static void freezeStaticStrings();

Powered by Google App Engine
This is Rietveld 408576698