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

Side by Side Diff: net/http/http_stream_factory_impl_job.h

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, 7 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 unified diff | Download patch
« no previous file with comments | « net/http/http_stream_factory.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Moves this stream request into SPDY mode. 229 // Moves this stream request into SPDY mode.
230 void SwitchToSpdyMode(); 230 void SwitchToSpdyMode();
231 231
232 // Should we force QUIC for this stream request. 232 // Should we force QUIC for this stream request.
233 bool ShouldForceQuic() const; 233 bool ShouldForceQuic() const;
234 234
235 void MaybeMarkAlternativeServiceBroken(); 235 void MaybeMarkAlternativeServiceBroken();
236 236
237 ClientSocketPoolManager::SocketGroupType GetSocketGroup() const; 237 ClientSocketPoolManager::SocketGroupType GetSocketGroup() const;
238 238
239 void MaybeCopyConnectionAttemptsFromClientSocketHandleToRequest();
240
239 // Record histograms of latency until Connect() completes. 241 // Record histograms of latency until Connect() completes.
240 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); 242 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle);
241 243
242 // Invoked by the transport socket pool after host resolution is complete 244 // Invoked by the transport socket pool after host resolution is complete
243 // to allow the connection to be aborted, if a matching SPDY session can 245 // to allow the connection to be aborted, if a matching SPDY session can
244 // be found. Will return ERR_SPDY_SESSION_ALREADY_EXISTS if such a 246 // be found. Will return ERR_SPDY_SESSION_ALREADY_EXISTS if such a
245 // session is found, and OK otherwise. 247 // session is found, and OK otherwise.
246 static int OnHostResolution(SpdySessionPool* spdy_session_pool, 248 static int OnHostResolution(SpdySessionPool* spdy_session_pool,
247 const SpdySessionKey& spdy_session_key, 249 const SpdySessionKey& spdy_session_key,
248 const AddressList& addresses, 250 const AddressList& addresses,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 JobStatus other_job_status_; 342 JobStatus other_job_status_;
341 343
342 base::WeakPtrFactory<Job> ptr_factory_; 344 base::WeakPtrFactory<Job> ptr_factory_;
343 345
344 DISALLOW_COPY_AND_ASSIGN(Job); 346 DISALLOW_COPY_AND_ASSIGN(Job);
345 }; 347 };
346 348
347 } // namespace net 349 } // namespace net
348 350
349 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 351 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698