diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 21:23:00 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 21:23:00 +0000 |
commit | 763f848ffbd28b22a6c2aa32bf28184d9c17b366 (patch) | |
tree | c6e662f3b95f1b52866c840a96d8ce02a75032cd /net/socket_stream/socket_stream_job.h | |
parent | 314feb0bc9a98d6ea9cfb576485bf82dd07ffe84 (diff) | |
download | chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.zip chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.tar.gz chromium_src-763f848ffbd28b22a6c2aa32bf28184d9c17b366.tar.bz2 |
FBTF: Another big ctor/dtor cleanup found by automated tools.
(Shaves ~2MB off Linux Debug .a files)
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3563004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream/socket_stream_job.h')
-rw-r--r-- | net/socket_stream/socket_stream_job.h | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/net/socket_stream/socket_stream_job.h b/net/socket_stream/socket_stream_job.h index 89e0c36..a301709 100644 --- a/net/socket_stream/socket_stream_job.h +++ b/net/socket_stream/socket_stream_job.h @@ -34,17 +34,13 @@ class SocketStreamJob : public base::RefCountedThreadSafe<SocketStreamJob> { static SocketStreamJob* CreateSocketStreamJob( const GURL& url, SocketStream::Delegate* delegate); - SocketStreamJob() {} + SocketStreamJob(); void InitSocketStream(SocketStream* socket) { socket_ = socket; } - virtual SocketStream::UserData *GetUserData(const void* key) const { - return socket_->GetUserData(key); - } - virtual void SetUserData(const void* key, SocketStream::UserData* data) { - socket_->SetUserData(key, data); - } + virtual SocketStream::UserData* GetUserData(const void* key) const; + virtual void SetUserData(const void* key, SocketStream::UserData* data); URLRequestContext* context() const { return socket_->context(); @@ -53,31 +49,20 @@ class SocketStreamJob : public base::RefCountedThreadSafe<SocketStreamJob> { socket_->set_context(context); } - virtual void Connect() { - socket_->Connect(); - } + virtual void Connect(); - virtual bool SendData(const char* data, int len) { - return socket_->SendData(data, len); - } + virtual bool SendData(const char* data, int len); - virtual void Close() { - socket_->Close(); - } + virtual void Close(); - virtual void RestartWithAuth( - const string16& username, - const string16& password) { - socket_->RestartWithAuth(username, password); - } + virtual void RestartWithAuth(const string16& username, + const string16& password); - virtual void DetachDelegate() { - socket_->DetachDelegate(); - } + virtual void DetachDelegate(); protected: friend class base::RefCountedThreadSafe<SocketStreamJob>; - virtual ~SocketStreamJob() {} + virtual ~SocketStreamJob(); scoped_refptr<SocketStream> socket_; |