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 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 390 |
391 CompletionCallback io_callback_; | 391 CompletionCallback io_callback_; |
392 std::unique_ptr<ClientSocketHandle> connection_; | 392 std::unique_ptr<ClientSocketHandle> connection_; |
393 HttpNetworkSession* const session_; | 393 HttpNetworkSession* const session_; |
394 State next_state_; | 394 State next_state_; |
395 ProxyService::PacRequest* pac_request_; | 395 ProxyService::PacRequest* pac_request_; |
396 SSLInfo ssl_info_; | 396 SSLInfo ssl_info_; |
397 | 397 |
398 // The server we are trying to reach, could be that of the origin or of the | 398 // The server we are trying to reach, could be that of the origin or of the |
399 // alternative service (after applying host mapping rules). | 399 // alternative service (after applying host mapping rules). |
400 HostPortPair destination_; | 400 const HostPortPair destination_; |
401 | 401 |
402 // The origin url we're trying to reach. This url may be different from the | 402 // The origin url we're trying to reach. This url may be different from the |
403 // original request when host mapping rules are set-up. | 403 // original request when host mapping rules are set-up. |
404 GURL origin_url_; | 404 const GURL origin_url_; |
405 | 405 |
406 // AlternativeService for this Job if this is an alternative Job. | 406 // AlternativeService for this Job if this is an alternative Job. |
407 const AlternativeService alternative_service_; | 407 const AlternativeService alternative_service_; |
408 | 408 |
409 // AlternativeService for the other Job if this is not an alternative Job. | 409 // AlternativeService for the other Job if this is not an alternative Job. |
410 AlternativeService other_job_alternative_service_; | 410 AlternativeService other_job_alternative_service_; |
411 | 411 |
412 // Unowned. |this| job is owned by |delegate_|. | 412 // Unowned. |this| job is owned by |delegate_|. |
413 Delegate* delegate_; | 413 Delegate* delegate_; |
414 | 414 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 const SSLConfig& server_ssl_config, | 503 const SSLConfig& server_ssl_config, |
504 const SSLConfig& proxy_ssl_config, | 504 const SSLConfig& proxy_ssl_config, |
505 HostPortPair destination, | 505 HostPortPair destination, |
506 GURL origin_url, | 506 GURL origin_url, |
507 NetLog* net_log) = 0; | 507 NetLog* net_log) = 0; |
508 }; | 508 }; |
509 | 509 |
510 } // namespace net | 510 } // namespace net |
511 | 511 |
512 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 512 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
OLD | NEW |