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_NETWORK_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "net/ssl/ssl_config_service.h" | 29 #include "net/ssl/ssl_config_service.h" |
30 #include "net/ssl/ssl_failure_state.h" | 30 #include "net/ssl/ssl_failure_state.h" |
31 #include "net/websockets/websocket_handshake_stream_base.h" | 31 #include "net/websockets/websocket_handshake_stream_base.h" |
32 | 32 |
33 namespace crypto { | 33 namespace crypto { |
34 class ECPrivateKey; | 34 class ECPrivateKey; |
35 } | 35 } |
36 | 36 |
37 namespace net { | 37 namespace net { |
38 | 38 |
39 class BidirectionalStreamJob; | 39 class BidirectionalStreamImpl; |
40 class ClientSocketHandle; | 40 class ClientSocketHandle; |
41 class HttpAuthController; | 41 class HttpAuthController; |
42 class HttpNetworkSession; | 42 class HttpNetworkSession; |
43 class HttpStream; | 43 class HttpStream; |
44 class HttpStreamRequest; | 44 class HttpStreamRequest; |
45 class IOBuffer; | 45 class IOBuffer; |
46 class ProxyInfo; | 46 class ProxyInfo; |
47 class SpdySession; | 47 class SpdySession; |
48 class SSLPrivateKey; | 48 class SSLPrivateKey; |
49 struct HttpRequestInfo; | 49 struct HttpRequestInfo; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void SetBeforeNetworkStartCallback( | 90 void SetBeforeNetworkStartCallback( |
91 const BeforeNetworkStartCallback& callback) override; | 91 const BeforeNetworkStartCallback& callback) override; |
92 void SetBeforeProxyHeadersSentCallback( | 92 void SetBeforeProxyHeadersSentCallback( |
93 const BeforeProxyHeadersSentCallback& callback) override; | 93 const BeforeProxyHeadersSentCallback& callback) override; |
94 int ResumeNetworkStart() override; | 94 int ResumeNetworkStart() override; |
95 | 95 |
96 // HttpStreamRequest::Delegate methods: | 96 // HttpStreamRequest::Delegate methods: |
97 void OnStreamReady(const SSLConfig& used_ssl_config, | 97 void OnStreamReady(const SSLConfig& used_ssl_config, |
98 const ProxyInfo& used_proxy_info, | 98 const ProxyInfo& used_proxy_info, |
99 HttpStream* stream) override; | 99 HttpStream* stream) override; |
100 void OnBidirectionalStreamJobReady( | 100 void OnBidirectionalStreamImplReady(const SSLConfig& used_ssl_config, |
101 const SSLConfig& used_ssl_config, | 101 const ProxyInfo& used_proxy_info, |
102 const ProxyInfo& used_proxy_info, | 102 BidirectionalStreamImpl* stream) override; |
103 BidirectionalStreamJob* stream_job) override; | |
104 void OnWebSocketHandshakeStreamReady( | 103 void OnWebSocketHandshakeStreamReady( |
105 const SSLConfig& used_ssl_config, | 104 const SSLConfig& used_ssl_config, |
106 const ProxyInfo& used_proxy_info, | 105 const ProxyInfo& used_proxy_info, |
107 WebSocketHandshakeStreamBase* stream) override; | 106 WebSocketHandshakeStreamBase* stream) override; |
108 void OnStreamFailed(int status, | 107 void OnStreamFailed(int status, |
109 const SSLConfig& used_ssl_config, | 108 const SSLConfig& used_ssl_config, |
110 SSLFailureState ssl_failure_state) override; | 109 SSLFailureState ssl_failure_state) override; |
111 void OnCertificateError(int status, | 110 void OnCertificateError(int status, |
112 const SSLConfig& used_ssl_config, | 111 const SSLConfig& used_ssl_config, |
113 const SSLInfo& ssl_info) override; | 112 const SSLInfo& ssl_info) override; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 ConnectionAttempts connection_attempts_; | 387 ConnectionAttempts connection_attempts_; |
389 IPEndPoint remote_endpoint_; | 388 IPEndPoint remote_endpoint_; |
390 // Network error details for this transaction. | 389 // Network error details for this transaction. |
391 NetErrorDetails net_error_details_; | 390 NetErrorDetails net_error_details_; |
392 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 391 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
393 }; | 392 }; |
394 | 393 |
395 } // namespace net | 394 } // namespace net |
396 | 395 |
397 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 396 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |