diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 05:28:40 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 05:28:40 +0000 |
commit | d207a5f9ff5af30e4d1dabdeb61c2164a926fd2b (patch) | |
tree | 0d4619b4a982a79f4af8e29ccfcc623e51d9aca5 /net/base/test_completion_callback.h | |
parent | 079fc0db5e3faeda06f20dcf36bbaad49381069c (diff) | |
download | chromium_src-d207a5f9ff5af30e4d1dabdeb61c2164a926fd2b.zip chromium_src-d207a5f9ff5af30e4d1dabdeb61c2164a926fd2b.tar.gz chromium_src-d207a5f9ff5af30e4d1dabdeb61c2164a926fd2b.tar.bz2 |
Reland my ClientSocketPool refactor again...
The bug was that the handle was getting reused, so the ConnectingSocket doesn't know that it got canceled. It just keeps chugging away.
I added a map to keep track of the ConnectingSockets so they can be canceled if we detect a reuse.
TBR=wtc
Review URL: http://codereview.chromium.org/118219
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/test_completion_callback.h')
-rw-r--r-- | net/base/test_completion_callback.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/test_completion_callback.h b/net/base/test_completion_callback.h index 65fec62..82680aa 100644 --- a/net/base/test_completion_callback.h +++ b/net/base/test_completion_callback.h @@ -40,7 +40,6 @@ class TestCompletionCallback : public CallbackRunner< Tuple1<int> > { bool have_result() const { return have_result_; } - private: virtual void RunWithParams(const Tuple1<int>& params) { result_ = params.a; have_result_ = true; @@ -48,6 +47,7 @@ class TestCompletionCallback : public CallbackRunner< Tuple1<int> > { MessageLoop::current()->Quit(); } + private: int result_; bool have_result_; bool waiting_for_result_; |