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