| 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 12 matching lines...) Expand all Loading... |
| 23 #include "net/http/http_transaction.h" | 23 #include "net/http/http_transaction.h" |
| 24 #include "net/log/net_log.h" | 24 #include "net/log/net_log.h" |
| 25 #include "net/proxy/proxy_service.h" | 25 #include "net/proxy/proxy_service.h" |
| 26 #include "net/socket/connection_attempts.h" | 26 #include "net/socket/connection_attempts.h" |
| 27 #include "net/ssl/ssl_config_service.h" | 27 #include "net/ssl/ssl_config_service.h" |
| 28 #include "net/ssl/ssl_failure_state.h" | 28 #include "net/ssl/ssl_failure_state.h" |
| 29 #include "net/websockets/websocket_handshake_stream_base.h" | 29 #include "net/websockets/websocket_handshake_stream_base.h" |
| 30 | 30 |
| 31 namespace net { | 31 namespace net { |
| 32 | 32 |
| 33 class BidirectionalStreamJob; |
| 33 class ClientSocketHandle; | 34 class ClientSocketHandle; |
| 34 class HttpAuthController; | 35 class HttpAuthController; |
| 35 class HttpNetworkSession; | 36 class HttpNetworkSession; |
| 36 class HttpStream; | 37 class HttpStream; |
| 37 class HttpStreamRequest; | 38 class HttpStreamRequest; |
| 38 class IOBuffer; | 39 class IOBuffer; |
| 39 class ProxyInfo; | 40 class ProxyInfo; |
| 40 class SpdySession; | 41 class SpdySession; |
| 41 class SSLPrivateKey; | 42 class SSLPrivateKey; |
| 42 struct HttpRequestInfo; | 43 struct HttpRequestInfo; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void SetBeforeNetworkStartCallback( | 84 void SetBeforeNetworkStartCallback( |
| 84 const BeforeNetworkStartCallback& callback) override; | 85 const BeforeNetworkStartCallback& callback) override; |
| 85 void SetBeforeProxyHeadersSentCallback( | 86 void SetBeforeProxyHeadersSentCallback( |
| 86 const BeforeProxyHeadersSentCallback& callback) override; | 87 const BeforeProxyHeadersSentCallback& callback) override; |
| 87 int ResumeNetworkStart() override; | 88 int ResumeNetworkStart() override; |
| 88 | 89 |
| 89 // HttpStreamRequest::Delegate methods: | 90 // HttpStreamRequest::Delegate methods: |
| 90 void OnStreamReady(const SSLConfig& used_ssl_config, | 91 void OnStreamReady(const SSLConfig& used_ssl_config, |
| 91 const ProxyInfo& used_proxy_info, | 92 const ProxyInfo& used_proxy_info, |
| 92 HttpStream* stream) override; | 93 HttpStream* stream) override; |
| 94 void OnBidirectionalStreamJobReady( |
| 95 const SSLConfig& used_ssl_config, |
| 96 const ProxyInfo& used_proxy_info, |
| 97 BidirectionalStreamJob* stream_job) override; |
| 93 void OnWebSocketHandshakeStreamReady( | 98 void OnWebSocketHandshakeStreamReady( |
| 94 const SSLConfig& used_ssl_config, | 99 const SSLConfig& used_ssl_config, |
| 95 const ProxyInfo& used_proxy_info, | 100 const ProxyInfo& used_proxy_info, |
| 96 WebSocketHandshakeStreamBase* stream) override; | 101 WebSocketHandshakeStreamBase* stream) override; |
| 97 void OnStreamFailed(int status, | 102 void OnStreamFailed(int status, |
| 98 const SSLConfig& used_ssl_config, | 103 const SSLConfig& used_ssl_config, |
| 99 SSLFailureState ssl_failure_state) override; | 104 SSLFailureState ssl_failure_state) override; |
| 100 void OnCertificateError(int status, | 105 void OnCertificateError(int status, |
| 101 const SSLConfig& used_ssl_config, | 106 const SSLConfig& used_ssl_config, |
| 102 const SSLInfo& ssl_info) override; | 107 const SSLInfo& ssl_info) override; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 ConnectionAttempts connection_attempts_; | 370 ConnectionAttempts connection_attempts_; |
| 366 IPEndPoint remote_endpoint_; | 371 IPEndPoint remote_endpoint_; |
| 367 // Network error details for this transaction. | 372 // Network error details for this transaction. |
| 368 NetErrorDetails net_error_details_; | 373 NetErrorDetails net_error_details_; |
| 369 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 374 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 370 }; | 375 }; |
| 371 | 376 |
| 372 } // namespace net | 377 } // namespace net |
| 373 | 378 |
| 374 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 379 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |