summaryrefslogtreecommitdiffstats
path: root/net/base/io_buffer.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 23:40:27 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 23:40:27 +0000
commitc12519fb92c4e6ae39b20376badc19c825d62d2c (patch)
tree659e1f599702c63ef54dcf4c262ea1995fc01b20 /net/base/io_buffer.h
parent0b9803cdd8e63251ad6485608dc7c00d439c0729 (diff)
downloadchromium_src-c12519fb92c4e6ae39b20376badc19c825d62d2c.zip
chromium_src-c12519fb92c4e6ae39b20376badc19c825d62d2c.tar.gz
chromium_src-c12519fb92c4e6ae39b20376badc19c825d62d2c.tar.bz2
Revert cl 9528 to fix mac test_shell_tests
Review URL: http://codereview.chromium.org/21236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/io_buffer.h')
-rw-r--r--net/base/io_buffer.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/net/base/io_buffer.h b/net/base/io_buffer.h
index 88066c2..39399ad 100644
--- a/net/base/io_buffer.h
+++ b/net/base/io_buffer.h
@@ -19,7 +19,7 @@ class IOBuffer : public base::RefCountedThreadSafe<IOBuffer> {
DCHECK(buffer_size);
data_ = new char[buffer_size];
}
- explicit IOBuffer(char* data) : data_(data) {}
+ explicit IOBuffer(char* buffer) : data_(buffer) {}
virtual ~IOBuffer() {
delete[] data_;
}
@@ -30,20 +30,6 @@ class IOBuffer : public base::RefCountedThreadSafe<IOBuffer> {
char* data_;
};
-// This class allows the creation of a temporary IOBuffer that doesn't really
-// own the underlying buffer. Please use this class only as a last resort.
-// A good example is the buffer for a synchronous operation, where we can be
-// sure that nobody is keeping an extra reference to this object so the lifetime
-// of the buffer can be completely managed by its intended owner.
-class WrappedIOBuffer : public net::IOBuffer {
- public:
- explicit WrappedIOBuffer(const char* data)
- : net::IOBuffer(const_cast<char*>(data)) {}
- ~WrappedIOBuffer() {
- data_ = NULL;
- }
-};
-
} // namespace net
#endif // NET_BASE_IO_BUFFER_H_