Chromium Code Reviews| Index: net/base/io_buffer.h |
| diff --git a/net/base/io_buffer.h b/net/base/io_buffer.h |
| index 0ce52e8d79c02473adabd6af98e2e9272d9b2fdb..5857e4165fa4d60b4510b69ecb8b0d86eda6efc8 100644 |
| --- a/net/base/io_buffer.h |
| +++ b/net/base/io_buffer.h |
| @@ -158,6 +158,10 @@ class NET_EXPORT DrainableIOBuffer : public IOBuffer { |
| // and remaining are updated appropriately. |
| void SetOffset(int bytes); |
| + // Changes the size of the buffer. Caller is responsible for ensuring that |
| + // the new size does not exceed the size of the base buffer. |
| + void SetSize(int size); |
|
vandebo (ex-Chrome)
2014/03/04 21:55:12
I don't think we want to add this. If that means
tommycli
2014/03/04 23:03:44
Done.
|
| + |
| int size() const { return size_; } |
| private: |