diff options
Diffstat (limited to 'base/pickle.h')
-rw-r--r-- | base/pickle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/pickle.h b/base/pickle.h index 66340ca..9f03662 100644 --- a/base/pickle.h +++ b/base/pickle.h @@ -9,6 +9,7 @@ #include "base/basictypes.h" #include "base/logging.h" +#include "base/string16.h" #include "testing/gtest/include/gtest/gtest_prod.h" // This class provides facilities for basic binary value packing and unpacking. @@ -72,6 +73,7 @@ class Pickle { bool ReadIntPtr(void** iter, intptr_t* result) const; bool ReadString(void** iter, std::string* result) const; bool ReadWString(void** iter, std::wstring* result) const; + bool ReadString16(void** iter, string16* result) const; bool ReadData(void** iter, const char** data, int* length) const; bool ReadBytes(void** iter, const char** data, int length) const; @@ -106,6 +108,7 @@ class Pickle { } bool WriteString(const std::string& value); bool WriteWString(const std::wstring& value); + bool WriteString16(const string16& value); bool WriteData(const char* data, int length); bool WriteBytes(const void* data, int data_len); |