| Index: base/pickle.h
|
| diff --git a/base/pickle.h b/base/pickle.h
|
| index cb9bab98965f141b5ea9bffe264ed5cc76ba77e2..3bd3b7e64eb73dac502679b14a8c69ced0aadf73 100644
|
| --- a/base/pickle.h
|
| +++ b/base/pickle.h
|
| @@ -273,6 +273,11 @@ class BASE_EXPORT Pickle {
|
| // not been changed.
|
| void TrimWriteData(int length);
|
|
|
| + // Reserves space for upcoming writes when multiple writes will be made and
|
| + // their sizes are computed in advance. It can be significantly faster to call
|
| + // Reserve() before calling WriteFoo() multiple times.
|
| + void Reserve(size_t additional_capacity);
|
| +
|
| // Payload follows after allocation of Header (header size is customizable).
|
| struct Header {
|
| uint32 payload_size; // Specifies the size of the payload.
|
|
|