Index: net/spdy/spdy_session_pool.h |
diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h |
index 0fad5d2d46b381b3dc8b2e632336e5631f921a66..c44e9de51b5655a4b518bb02da5b378cb3e54754 100644 |
--- a/net/spdy/spdy_session_pool.h |
+++ b/net/spdy/spdy_session_pool.h |
@@ -79,14 +79,15 @@ |
// encountered when connecting the SSL socket, with OK meaning there |
// was no error. |
// |
- // Returns the new SpdySession. Note that the SpdySession begins reading from |
- // |connection| on a subsequent event loop iteration, so it may be closed |
- // immediately afterwards if the first read of |connection| fails. |
- base::WeakPtr<SpdySession> CreateAvailableSessionFromSocket( |
+ // If successful, OK is returned and |available_session| will be |
+ // non-NULL and available. Otherwise, an error is returned and |
+ // |available_session| will be NULL. |
+ net::Error CreateAvailableSessionFromSocket( |
const SpdySessionKey& key, |
scoped_ptr<ClientSocketHandle> connection, |
const BoundNetLog& net_log, |
int certificate_error_code, |
+ base::WeakPtr<SpdySession>* available_session, |
bool is_secure); |
// Find an available session for the given key, or NULL if there isn't one. |