diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 18:51:34 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 18:51:34 +0000 |
commit | 776e175577badb594cc9023f56b16480546c94ea (patch) | |
tree | d4159651d2165dd6bbfbdae51faa4ac77404f870 /net/base/io_buffer.h | |
parent | 62cf690a77564be902cf481803a9a7e3d52f7c55 (diff) | |
download | chromium_src-776e175577badb594cc9023f56b16480546c94ea.zip chromium_src-776e175577badb594cc9023f56b16480546c94ea.tar.gz chromium_src-776e175577badb594cc9023f56b16480546c94ea.tar.bz2 |
After further discussion, do not try to handle memory errors, but make assertions about allocation parameters stronger.
BUG=25826
TEST=none
Review URL: http://codereview.chromium.org/378037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/io_buffer.h')
-rw-r--r-- | net/base/io_buffer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/base/io_buffer.h b/net/base/io_buffer.h index adcf698..671b263 100644 --- a/net/base/io_buffer.h +++ b/net/base/io_buffer.h @@ -112,9 +112,8 @@ class GrowableIOBuffer : public IOBuffer { public: GrowableIOBuffer() : IOBuffer(), capacity_(0), offset_(0) {} - // realloc memory to the specified capacity. Returns true on success. - // On failure, the capacity and buffer are unchanged. - bool SetCapacity(int capacity); + // realloc memory to the specified capacity. + void SetCapacity(int capacity); int capacity() { return capacity_; } // |offset| moves the |data_| pointer, allowing "seeking" in the data. |