| 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 <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 JobType job_type, | 183 JobType job_type, |
| 184 HttpNetworkSession* session, | 184 HttpNetworkSession* session, |
| 185 const HttpRequestInfo& request_info, | 185 const HttpRequestInfo& request_info, |
| 186 RequestPriority priority, | 186 RequestPriority priority, |
| 187 const ProxyInfo& proxy_info, | 187 const ProxyInfo& proxy_info, |
| 188 const SSLConfig& server_ssl_config, | 188 const SSLConfig& server_ssl_config, |
| 189 const SSLConfig& proxy_ssl_config, | 189 const SSLConfig& proxy_ssl_config, |
| 190 HostPortPair destination, | 190 HostPortPair destination, |
| 191 GURL origin_url, | 191 GURL origin_url, |
| 192 NextProto alternative_protocol, | 192 NextProto alternative_protocol, |
| 193 QuicVersion quic_version, |
| 193 const ProxyServer& alternative_proxy_server, | 194 const ProxyServer& alternative_proxy_server, |
| 194 bool enable_ip_based_pooling, | 195 bool enable_ip_based_pooling, |
| 195 NetLog* net_log); | 196 NetLog* net_log); |
| 196 virtual ~Job(); | 197 virtual ~Job(); |
| 197 | 198 |
| 198 // Start initiates the process of creating a new HttpStream. | 199 // Start initiates the process of creating a new HttpStream. |
| 199 // |delegate_| will be notified upon completion. | 200 // |delegate_| will be notified upon completion. |
| 200 void Start(HttpStreamRequest::StreamType stream_type); | 201 void Start(HttpStreamRequest::StreamType stream_type); |
| 201 | 202 |
| 202 // Preconnect will attempt to request |num_streams| sockets from the | 203 // Preconnect will attempt to request |num_streams| sockets from the |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 Delegate* const delegate_; | 439 Delegate* const delegate_; |
| 439 | 440 |
| 440 const JobType job_type_; | 441 const JobType job_type_; |
| 441 | 442 |
| 442 // True if handling a HTTPS request. | 443 // True if handling a HTTPS request. |
| 443 const bool using_ssl_; | 444 const bool using_ssl_; |
| 444 | 445 |
| 445 // True if Job uses QUIC. | 446 // True if Job uses QUIC. |
| 446 const bool using_quic_; | 447 const bool using_quic_; |
| 447 | 448 |
| 449 // QuicVersion that should be used to connect to the QUIC server if Job uses |
| 450 // QUIC. |
| 451 QuicVersion quic_version_; |
| 452 |
| 448 // True if Alternative Service protocol field requires that HTTP/2 is used. | 453 // True if Alternative Service protocol field requires that HTTP/2 is used. |
| 449 // In this case, Job fails if it cannot pool to an existing SpdySession and | 454 // In this case, Job fails if it cannot pool to an existing SpdySession and |
| 450 // the server does not negotiate HTTP/2 on a new socket. | 455 // the server does not negotiate HTTP/2 on a new socket. |
| 451 const bool expect_spdy_; | 456 const bool expect_spdy_; |
| 452 | 457 |
| 453 // True if Job actually uses HTTP/2. | 458 // True if Job actually uses HTTP/2. |
| 454 bool using_spdy_; | 459 bool using_spdy_; |
| 455 | 460 |
| 456 // True if this job might succeed with a different proxy config. | 461 // True if this job might succeed with a different proxy config. |
| 457 bool should_reconsider_proxy_; | 462 bool should_reconsider_proxy_; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 HttpStreamFactoryImpl::JobType job_type, | 534 HttpStreamFactoryImpl::JobType job_type, |
| 530 HttpNetworkSession* session, | 535 HttpNetworkSession* session, |
| 531 const HttpRequestInfo& request_info, | 536 const HttpRequestInfo& request_info, |
| 532 RequestPriority priority, | 537 RequestPriority priority, |
| 533 const ProxyInfo& proxy_info, | 538 const ProxyInfo& proxy_info, |
| 534 const SSLConfig& server_ssl_config, | 539 const SSLConfig& server_ssl_config, |
| 535 const SSLConfig& proxy_ssl_config, | 540 const SSLConfig& proxy_ssl_config, |
| 536 HostPortPair destination, | 541 HostPortPair destination, |
| 537 GURL origin_url, | 542 GURL origin_url, |
| 538 NextProto alternative_protocol, | 543 NextProto alternative_protocol, |
| 544 QuicVersion quic_version, |
| 539 bool enable_ip_based_pooling, | 545 bool enable_ip_based_pooling, |
| 540 NetLog* net_log); | 546 NetLog* net_log); |
| 541 | 547 |
| 542 virtual std::unique_ptr<HttpStreamFactoryImpl::Job> CreateAltProxyJob( | 548 virtual std::unique_ptr<HttpStreamFactoryImpl::Job> CreateAltProxyJob( |
| 543 HttpStreamFactoryImpl::Job::Delegate* delegate, | 549 HttpStreamFactoryImpl::Job::Delegate* delegate, |
| 544 HttpStreamFactoryImpl::JobType job_type, | 550 HttpStreamFactoryImpl::JobType job_type, |
| 545 HttpNetworkSession* session, | 551 HttpNetworkSession* session, |
| 546 const HttpRequestInfo& request_info, | 552 const HttpRequestInfo& request_info, |
| 547 RequestPriority priority, | 553 RequestPriority priority, |
| 548 const ProxyInfo& proxy_info, | 554 const ProxyInfo& proxy_info, |
| 549 const SSLConfig& server_ssl_config, | 555 const SSLConfig& server_ssl_config, |
| 550 const SSLConfig& proxy_ssl_config, | 556 const SSLConfig& proxy_ssl_config, |
| 551 HostPortPair destination, | 557 HostPortPair destination, |
| 552 GURL origin_url, | 558 GURL origin_url, |
| 553 const ProxyServer& alternative_proxy_server, | 559 const ProxyServer& alternative_proxy_server, |
| 554 bool enable_ip_based_pooling, | 560 bool enable_ip_based_pooling, |
| 555 NetLog* net_log); | 561 NetLog* net_log); |
| 556 }; | 562 }; |
| 557 | 563 |
| 558 } // namespace net | 564 } // namespace net |
| 559 | 565 |
| 560 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 566 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |