| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // Moves this stream request into SPDY mode. | 187 // Moves this stream request into SPDY mode. |
| 188 void SwitchToSpdyMode(); | 188 void SwitchToSpdyMode(); |
| 189 | 189 |
| 190 // Should we force SPDY to run over SSL for this stream request. | 190 // Should we force SPDY to run over SSL for this stream request. |
| 191 bool ShouldForceSpdySSL() const; | 191 bool ShouldForceSpdySSL() const; |
| 192 | 192 |
| 193 // Should we force SPDY to run without SSL for this stream request. | 193 // Should we force SPDY to run without SSL for this stream request. |
| 194 bool ShouldForceSpdyWithoutSSL() const; | 194 bool ShouldForceSpdyWithoutSSL() const; |
| 195 | 195 |
| 196 bool IsRequestEligibleForPipelining() const; | 196 bool IsRequestEligibleForPipelining(); |
| 197 | 197 |
| 198 // Record histograms of latency until Connect() completes. | 198 // Record histograms of latency until Connect() completes. |
| 199 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); | 199 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); |
| 200 | 200 |
| 201 Request* request_; | 201 Request* request_; |
| 202 | 202 |
| 203 const HttpRequestInfo request_info_; | 203 const HttpRequestInfo request_info_; |
| 204 ProxyInfo proxy_info_; | 204 ProxyInfo proxy_info_; |
| 205 SSLConfig server_ssl_config_; | 205 SSLConfig server_ssl_config_; |
| 206 SSLConfig proxy_ssl_config_; | 206 SSLConfig proxy_ssl_config_; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 bool existing_available_pipeline_; | 276 bool existing_available_pipeline_; |
| 277 | 277 |
| 278 base::WeakPtrFactory<Job> ptr_factory_; | 278 base::WeakPtrFactory<Job> ptr_factory_; |
| 279 | 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(Job); | 280 DISALLOW_COPY_AND_ASSIGN(Job); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 } // namespace net | 283 } // namespace net |
| 284 | 284 |
| 285 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 285 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |