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

Unified Diff: net/http/http_stream_factory_impl_request.cc

Issue 1006643002: Plumb connection attempts from (non-proxy) ConnectJobs to HttpNetworkTransaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, resolve conflict Created 5 years, 8 months 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/http/http_stream_factory_impl_request.h ('k') | net/http/http_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_request.cc
diff --git a/net/http/http_stream_factory_impl_request.cc b/net/http/http_stream_factory_impl_request.cc
index a884745bce6b32003cb1116403650a82c7c8fa2a..d8a4b5b6bd9e3447b51f80bf86fad2aab0478f62 100644
--- a/net/http/http_stream_factory_impl_request.cc
+++ b/net/http/http_stream_factory_impl_request.cc
@@ -234,6 +234,11 @@ bool HttpStreamFactoryImpl::Request::using_spdy() const {
return using_spdy_;
}
+const ConnectionAttempts& HttpStreamFactoryImpl::Request::connection_attempts()
+ const {
+ return connection_attempts_;
+}
+
void
HttpStreamFactoryImpl::Request::RemoveRequestFromSpdySessionRequestMap() {
if (spdy_session_key_.get()) {
@@ -315,6 +320,12 @@ void HttpStreamFactoryImpl::Request::OnNewSpdySessionReady(
}
}
+void HttpStreamFactoryImpl::Request::AddConnectionAttempts(
+ const ConnectionAttempts& attempts) {
+ for (const auto& attempt : attempts)
+ connection_attempts_.push_back(attempt);
+}
+
void HttpStreamFactoryImpl::Request::OrphanJobsExcept(Job* job) {
DCHECK(job);
DCHECK(!bound_job_.get());
« no previous file with comments | « net/http/http_stream_factory_impl_request.h ('k') | net/http/http_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698