diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 15:47:19 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 15:47:19 +0000 |
commit | 6d22a976f77187252164baa27100e472d5a924b5 (patch) | |
tree | d974359a0499559b934c3df79657ce31cdbbfbe2 /net/http | |
parent | 6b5fed239714be750caaad431193f34ce7ea6ff4 (diff) | |
download | chromium_src-6d22a976f77187252164baa27100e472d5a924b5.zip chromium_src-6d22a976f77187252164baa27100e472d5a924b5.tar.gz chromium_src-6d22a976f77187252164baa27100e472d5a924b5.tar.bz2 |
Reduce static initializers by removing inline constructors and
destructors from classes with instance members of type
scoped_ptr_malloc<>
Also remove #include of iostream from remaining header file.
Review URL: http://codereview.chromium.org/2861065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_basic_stream.cc | 2 | ||||
-rw-r--r-- | net/http/http_basic_stream.h | 2 | ||||
-rw-r--r-- | net/http/http_stream_parser.cc | 2 | ||||
-rw-r--r-- | net/http/http_stream_parser.h | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc index 807e4ebf..8303357 100644 --- a/net/http/http_basic_stream.cc +++ b/net/http/http_basic_stream.cc @@ -21,6 +21,8 @@ int HttpBasicStream::SendRequest(const HttpRequestInfo* request, request, headers, request_body, response, callback); } +HttpBasicStream::~HttpBasicStream() {} + uint64 HttpBasicStream::GetUploadProgress() const { return parser_->GetUploadProgress(); } diff --git a/net/http/http_basic_stream.h b/net/http/http_basic_stream.h index 8a31d64..ff3bcf2 100644 --- a/net/http/http_basic_stream.h +++ b/net/http/http_basic_stream.h @@ -27,7 +27,7 @@ class UploadDataStream; class HttpBasicStream : public HttpStream { public: HttpBasicStream(ClientSocketHandle* handle, const BoundNetLog& net_log); - virtual ~HttpBasicStream() {} + virtual ~HttpBasicStream(); // HttpStream methods: virtual int SendRequest(const HttpRequestInfo* request, diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc index bcbce58..1426957 100644 --- a/net/http/http_stream_parser.cc +++ b/net/http/http_stream_parser.cc @@ -36,6 +36,8 @@ HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection, DCHECK_EQ(0, read_buffer->offset()); } +HttpStreamParser::~HttpStreamParser() {} + int HttpStreamParser::SendRequest(const HttpRequestInfo* request, const std::string& headers, UploadDataStream* request_body, diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h index 724127f..44cc9e8 100644 --- a/net/http/http_stream_parser.h +++ b/net/http/http_stream_parser.h @@ -30,7 +30,7 @@ class HttpStreamParser { HttpStreamParser(ClientSocketHandle* connection, GrowableIOBuffer* read_buffer, const BoundNetLog& net_log); - ~HttpStreamParser() {} + ~HttpStreamParser(); // These functions implement the interface described in HttpStream with // some additional functionality |