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> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "crypto/ec_private_key.h" | 17 #include "crypto/ec_private_key.h" |
18 #include "net/base/net_error_details.h" | 18 #include "net/base/net_error_details.h" |
19 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
20 #include "net/http/http_auth.h" | 20 #include "net/http/http_auth.h" |
21 #include "net/http/http_request_headers.h" | 21 #include "net/http/http_request_headers.h" |
22 #include "net/http/http_response_info.h" | |
23 #include "net/http/http_stream_factory.h" | 22 #include "net/http/http_stream_factory.h" |
24 #include "net/http/http_transaction.h" | 23 #include "net/http/http_transaction.h" |
25 #include "net/log/net_log.h" | 24 #include "net/log/net_log.h" |
26 #include "net/proxy/proxy_service.h" | 25 #include "net/proxy/proxy_service.h" |
27 #include "net/socket/connection_attempts.h" | 26 #include "net/socket/connection_attempts.h" |
28 #include "net/ssl/channel_id_service.h" | 27 #include "net/ssl/channel_id_service.h" |
29 #include "net/ssl/ssl_config_service.h" | 28 #include "net/ssl/ssl_config_service.h" |
30 #include "net/ssl/ssl_failure_state.h" | 29 #include "net/ssl/ssl_failure_state.h" |
31 #include "net/websockets/websocket_handshake_stream_base.h" | 30 #include "net/websockets/websocket_handshake_stream_base.h" |
32 | 31 |
33 namespace crypto { | 32 namespace crypto { |
34 class ECPrivateKey; | 33 class ECPrivateKey; |
35 } | 34 } |
36 | 35 |
37 namespace net { | 36 namespace net { |
38 | 37 |
39 class BidirectionalStreamImpl; | 38 class BidirectionalStreamImpl; |
40 class ClientSocketHandle; | 39 class ClientSocketHandle; |
41 class HttpAuthController; | 40 class HttpAuthController; |
42 class HttpNetworkSession; | 41 class HttpNetworkSession; |
| 42 class HttpResponseInfo; |
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; |
50 | 50 |
51 class NET_EXPORT_PRIVATE HttpNetworkTransaction | 51 class NET_EXPORT_PRIVATE HttpNetworkTransaction |
52 : public HttpTransaction, | 52 : public HttpTransaction, |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 HttpAuth::Target pending_auth_target_; | 309 HttpAuth::Target pending_auth_target_; |
310 | 310 |
311 CompletionCallback io_callback_; | 311 CompletionCallback io_callback_; |
312 CompletionCallback callback_; | 312 CompletionCallback callback_; |
313 | 313 |
314 HttpNetworkSession* session_; | 314 HttpNetworkSession* session_; |
315 | 315 |
316 BoundNetLog net_log_; | 316 BoundNetLog net_log_; |
317 const HttpRequestInfo* request_; | 317 const HttpRequestInfo* request_; |
318 RequestPriority priority_; | 318 RequestPriority priority_; |
319 HttpResponseInfo response_; | 319 scoped_ptr<HttpResponseInfo> response_; |
320 | 320 |
321 // |proxy_info_| is the ProxyInfo used by the HttpStreamRequest. | 321 // |proxy_info_| is the ProxyInfo used by the HttpStreamRequest. |
322 ProxyInfo proxy_info_; | 322 ProxyInfo proxy_info_; |
323 | 323 |
324 scoped_ptr<HttpStreamRequest> stream_request_; | 324 scoped_ptr<HttpStreamRequest> stream_request_; |
325 scoped_ptr<HttpStream> stream_; | 325 scoped_ptr<HttpStream> stream_; |
326 | 326 |
327 // True if we've validated the headers that the stream parser has returned. | 327 // True if we've validated the headers that the stream parser has returned. |
328 bool headers_valid_; | 328 bool headers_valid_; |
329 | 329 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 ConnectionAttempts connection_attempts_; | 387 ConnectionAttempts connection_attempts_; |
388 IPEndPoint remote_endpoint_; | 388 IPEndPoint remote_endpoint_; |
389 // Network error details for this transaction. | 389 // Network error details for this transaction. |
390 NetErrorDetails net_error_details_; | 390 NetErrorDetails net_error_details_; |
391 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 391 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
392 }; | 392 }; |
393 | 393 |
394 } // namespace net | 394 } // namespace net |
395 | 395 |
396 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 396 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |