summaryrefslogtreecommitdiffstats
path: root/net/base/io_buffer.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 18:51:34 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 18:51:34 +0000
commit776e175577badb594cc9023f56b16480546c94ea (patch)
treed4159651d2165dd6bbfbdae51faa4ac77404f870 /net/base/io_buffer.h
parent62cf690a77564be902cf481803a9a7e3d52f7c55 (diff)
downloadchromium_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.h5
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.