| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "net/websockets/websocket_handshake_stream_base.h" | 24 #include "net/websockets/websocket_handshake_stream_base.h" |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 | 27 |
| 28 class ClientSocketHandle; | 28 class ClientSocketHandle; |
| 29 class HttpAuthController; | 29 class HttpAuthController; |
| 30 class HttpNetworkSession; | 30 class HttpNetworkSession; |
| 31 class HttpStreamBase; | 31 class HttpStreamBase; |
| 32 class HttpStreamRequest; | 32 class HttpStreamRequest; |
| 33 class IOBuffer; | 33 class IOBuffer; |
| 34 class ProxyInfo; |
| 34 class SpdySession; | 35 class SpdySession; |
| 35 struct HttpRequestInfo; | 36 struct HttpRequestInfo; |
| 36 | 37 |
| 37 class NET_EXPORT_PRIVATE HttpNetworkTransaction | 38 class NET_EXPORT_PRIVATE HttpNetworkTransaction |
| 38 : public HttpTransaction, | 39 : public HttpTransaction, |
| 39 public HttpStreamRequest::Delegate { | 40 public HttpStreamRequest::Delegate { |
| 40 public: | 41 public: |
| 41 HttpNetworkTransaction(RequestPriority priority, | 42 HttpNetworkTransaction(RequestPriority priority, |
| 42 HttpNetworkSession* session); | 43 HttpNetworkSession* session); |
| 43 | 44 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 68 virtual LoadState GetLoadState() const OVERRIDE; | 69 virtual LoadState GetLoadState() const OVERRIDE; |
| 69 virtual UploadProgress GetUploadProgress() const OVERRIDE; | 70 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
| 70 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) OVERRIDE; | 71 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) OVERRIDE; |
| 71 virtual bool GetLoadTimingInfo( | 72 virtual bool GetLoadTimingInfo( |
| 72 LoadTimingInfo* load_timing_info) const OVERRIDE; | 73 LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 73 virtual void SetPriority(RequestPriority priority) OVERRIDE; | 74 virtual void SetPriority(RequestPriority priority) OVERRIDE; |
| 74 virtual void SetWebSocketHandshakeStreamCreateHelper( | 75 virtual void SetWebSocketHandshakeStreamCreateHelper( |
| 75 WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; | 76 WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; |
| 76 virtual void SetBeforeNetworkStartCallback( | 77 virtual void SetBeforeNetworkStartCallback( |
| 77 const BeforeNetworkStartCallback& callback) OVERRIDE; | 78 const BeforeNetworkStartCallback& callback) OVERRIDE; |
| 79 virtual void SetBeforeProxyHeadersSentCallback( |
| 80 const BeforeProxyHeadersSentCallback& callback) OVERRIDE; |
| 78 virtual int ResumeNetworkStart() OVERRIDE; | 81 virtual int ResumeNetworkStart() OVERRIDE; |
| 79 | 82 |
| 80 // HttpStreamRequest::Delegate methods: | 83 // HttpStreamRequest::Delegate methods: |
| 81 virtual void OnStreamReady(const SSLConfig& used_ssl_config, | 84 virtual void OnStreamReady(const SSLConfig& used_ssl_config, |
| 82 const ProxyInfo& used_proxy_info, | 85 const ProxyInfo& used_proxy_info, |
| 83 HttpStreamBase* stream) OVERRIDE; | 86 HttpStreamBase* stream) OVERRIDE; |
| 84 virtual void OnWebSocketHandshakeStreamReady( | 87 virtual void OnWebSocketHandshakeStreamReady( |
| 85 const SSLConfig& used_ssl_config, | 88 const SSLConfig& used_ssl_config, |
| 86 const ProxyInfo& used_proxy_info, | 89 const ProxyInfo& used_proxy_info, |
| 87 WebSocketHandshakeStreamBase* stream) OVERRIDE; | 90 WebSocketHandshakeStreamBase* stream) OVERRIDE; |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // True when the tunnel is in the process of being established - we can't | 330 // True when the tunnel is in the process of being established - we can't |
| 328 // read from the socket until the tunnel is done. | 331 // read from the socket until the tunnel is done. |
| 329 bool establishing_tunnel_; | 332 bool establishing_tunnel_; |
| 330 | 333 |
| 331 // The helper object to use to create WebSocketHandshakeStreamBase | 334 // The helper object to use to create WebSocketHandshakeStreamBase |
| 332 // objects. Only relevant when establishing a WebSocket connection. | 335 // objects. Only relevant when establishing a WebSocket connection. |
| 333 WebSocketHandshakeStreamBase::CreateHelper* | 336 WebSocketHandshakeStreamBase::CreateHelper* |
| 334 websocket_handshake_stream_base_create_helper_; | 337 websocket_handshake_stream_base_create_helper_; |
| 335 | 338 |
| 336 BeforeNetworkStartCallback before_network_start_callback_; | 339 BeforeNetworkStartCallback before_network_start_callback_; |
| 340 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 337 | 341 |
| 338 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 342 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 339 }; | 343 }; |
| 340 | 344 |
| 341 } // namespace net | 345 } // namespace net |
| 342 | 346 |
| 343 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 347 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |