Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Unified Diff: net/quic/quic_stream_factory.cc

Issue 11416058: Integrating the QuicStreamFactory into the network stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix static initializer Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index f41644ca45c1fea07f7d1f7075ab1dc36314902f..df2730715bcccd6723d09813335248ba75844f05 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -156,7 +156,7 @@ QuicStreamRequest::QuicStreamRequest(QuicStreamFactory* factory)
}
QuicStreamRequest::~QuicStreamRequest() {
- if (factory_)
+ if (factory_ && !callback_.is_null())
factory_->CancelRequest(this);
}
@@ -216,7 +216,7 @@ QuicStreamFactory::QuicStreamFactory(
HostResolver* host_resolver,
ClientSocketFactory* client_socket_factory,
const RandomUint64Callback& random_uint64_callback,
- const QuicClock* clock)
+ QuicClock* clock)
: host_resolver_(host_resolver),
client_socket_factory_(client_socket_factory),
random_uint64_callback_(random_uint64_callback),
@@ -342,7 +342,7 @@ QuicClientSession* QuicStreamFactory::CreateSession(
QuicConnectionHelper* helper = new QuicConnectionHelper(
MessageLoop::current()->message_loop_proxy(),
- clock_, socket);
+ clock_.get(), socket);
QuicConnection* connection = new QuicConnection(guid, addr, helper);
QuicClientSession* session = new QuicClientSession(connection, helper, this);
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698