| OLD | NEW |
| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Moves this stream request into SPDY mode. | 273 // Moves this stream request into SPDY mode. |
| 274 void SwitchToSpdyMode(); | 274 void SwitchToSpdyMode(); |
| 275 | 275 |
| 276 // Should we force QUIC for this stream request. | 276 // Should we force QUIC for this stream request. |
| 277 bool ShouldForceQuic() const; | 277 bool ShouldForceQuic() const; |
| 278 | 278 |
| 279 void MaybeMarkAlternativeServiceBroken(); | 279 void MaybeMarkAlternativeServiceBroken(); |
| 280 | 280 |
| 281 ClientSocketPoolManager::SocketGroupType GetSocketGroup() const; | 281 ClientSocketPoolManager::SocketGroupType GetSocketGroup() const; |
| 282 | 282 |
| 283 void MaybeCopyConnectionAttemptsFromClientSocketHandleToRequest(); | 283 void MaybeCopyConnectionAttemptsFromSocketOrHandle(); |
| 284 | 284 |
| 285 // Record histograms of latency until Connect() completes. | 285 // Record histograms of latency until Connect() completes. |
| 286 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); | 286 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); |
| 287 | 287 |
| 288 // Invoked by the transport socket pool after host resolution is complete | 288 // Invoked by the transport socket pool after host resolution is complete |
| 289 // to allow the connection to be aborted, if a matching SPDY session can | 289 // to allow the connection to be aborted, if a matching SPDY session can |
| 290 // be found. Will return ERR_SPDY_SESSION_ALREADY_EXISTS if such a | 290 // be found. Will return ERR_SPDY_SESSION_ALREADY_EXISTS if such a |
| 291 // session is found, and OK otherwise. | 291 // session is found, and OK otherwise. |
| 292 static int OnHostResolution(SpdySessionPool* spdy_session_pool, | 292 static int OnHostResolution(SpdySessionPool* spdy_session_pool, |
| 293 const SpdySessionKey& spdy_session_key, | 293 const SpdySessionKey& spdy_session_key, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 JobStatus other_job_status_; | 388 JobStatus other_job_status_; |
| 389 | 389 |
| 390 base::WeakPtrFactory<Job> ptr_factory_; | 390 base::WeakPtrFactory<Job> ptr_factory_; |
| 391 | 391 |
| 392 DISALLOW_COPY_AND_ASSIGN(Job); | 392 DISALLOW_COPY_AND_ASSIGN(Job); |
| 393 }; | 393 }; |
| 394 | 394 |
| 395 } // namespace net | 395 } // namespace net |
| 396 | 396 |
| 397 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 397 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |