OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_CONTROLLER_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
7 | 7 |
8 #include "net/base/host_port_pair.h" | 8 #include "net/base/host_port_pair.h" |
9 #include "net/http/http_stream_factory_impl_job.h" | 9 #include "net/http/http_stream_factory_impl_job.h" |
10 #include "net/http/http_stream_factory_impl_request.h" | 10 #include "net/http/http_stream_factory_impl_request.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // Called to resume the HttpStream creation process when necessary | 63 // Called to resume the HttpStream creation process when necessary |
64 // Proxy authentication credentials are collected. | 64 // Proxy authentication credentials are collected. |
65 int RestartTunnelWithProxyAuth(const AuthCredentials& credentials) override; | 65 int RestartTunnelWithProxyAuth(const AuthCredentials& credentials) override; |
66 | 66 |
67 // Called when the priority of transaction changes. | 67 // Called when the priority of transaction changes. |
68 void SetPriority(RequestPriority priority) override; | 68 void SetPriority(RequestPriority priority) override; |
69 | 69 |
70 // From HttpStreamFactoryImpl::Job::Delegate. | 70 // From HttpStreamFactoryImpl::Job::Delegate. |
71 // Invoked when |job| has an HttpStream ready. | 71 // Invoked when |job| has an HttpStream ready. |
72 void OnStreamReady(Job* job, | 72 void OnStreamReady(Job* job, const SSLConfig& used_ssl_config) override; |
73 const SSLConfig& used_ssl_config, | |
74 const ProxyInfo& used_proxy_info) override; | |
75 | 73 |
76 // Invoked when |job| has a BidirectionalStream ready. | 74 // Invoked when |job| has a BidirectionalStream ready. |
77 void OnBidirectionalStreamImplReady( | 75 void OnBidirectionalStreamImplReady( |
78 Job* job, | 76 Job* job, |
79 const SSLConfig& used_ssl_config, | 77 const SSLConfig& used_ssl_config, |
80 const ProxyInfo& used_proxy_info) override; | 78 const ProxyInfo& used_proxy_info) override; |
81 | 79 |
82 // Invoked when |job| has a WebSocketHandshakeStream ready. | 80 // Invoked when |job| has a WebSocketHandshakeStream ready. |
83 void OnWebSocketHandshakeStreamReady( | 81 void OnWebSocketHandshakeStreamReady( |
84 Job* job, | 82 Job* job, |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 297 |
300 // True if an alternative proxy server job can be started to fetch |request_|. | 298 // True if an alternative proxy server job can be started to fetch |request_|. |
301 bool can_start_alternative_proxy_job_; | 299 bool can_start_alternative_proxy_job_; |
302 | 300 |
303 base::WeakPtrFactory<JobController> ptr_factory_; | 301 base::WeakPtrFactory<JobController> ptr_factory_; |
304 }; | 302 }; |
305 | 303 |
306 } // namespace net | 304 } // namespace net |
307 | 305 |
308 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 306 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
OLD | NEW |