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/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.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 "net/base/request_priority.h" | 17 #include "net/base/request_priority.h" |
18 #include "net/http/http_auth.h" | 18 #include "net/http/http_auth.h" |
19 #include "net/http/http_request_headers.h" | 19 #include "net/http/http_request_headers.h" |
20 #include "net/http/http_response_info.h" | 20 #include "net/http/http_response_info.h" |
21 #include "net/http/http_stream_factory.h" | 21 #include "net/http/http_stream_factory.h" |
22 #include "net/http/http_transaction.h" | 22 #include "net/http/http_transaction.h" |
23 #include "net/log/net_log.h" | 23 #include "net/log/net_log.h" |
24 #include "net/proxy/proxy_service.h" | 24 #include "net/proxy/proxy_service.h" |
25 #include "net/socket/connection_attempts.h" | 25 #include "net/socket/connection_attempts.h" |
26 #include "net/ssl/ssl_config_service.h" | 26 #include "net/ssl/ssl_config_service.h" |
27 #include "net/ssl/ssl_failure_state.h" | 27 #include "net/ssl/ssl_failure_state.h" |
28 #include "net/ssl/ssl_private_key.h" | |
davidben
2015/09/25 20:10:11
Forward decl (or perhaps just not necessary since
svaldez
2015/09/28 16:54:52
Done.
| |
28 #include "net/websockets/websocket_handshake_stream_base.h" | 29 #include "net/websockets/websocket_handshake_stream_base.h" |
29 | 30 |
30 namespace net { | 31 namespace net { |
31 | 32 |
32 class ClientSocketHandle; | 33 class ClientSocketHandle; |
33 class HttpAuthController; | 34 class HttpAuthController; |
34 class HttpNetworkSession; | 35 class HttpNetworkSession; |
35 class HttpStream; | 36 class HttpStream; |
36 class HttpStreamRequest; | 37 class HttpStreamRequest; |
37 class IOBuffer; | 38 class IOBuffer; |
38 class ProxyInfo; | 39 class ProxyInfo; |
39 class SpdySession; | 40 class SpdySession; |
40 struct HttpRequestInfo; | 41 struct HttpRequestInfo; |
41 | 42 |
42 class NET_EXPORT_PRIVATE HttpNetworkTransaction | 43 class NET_EXPORT_PRIVATE HttpNetworkTransaction |
43 : public HttpTransaction, | 44 : public HttpTransaction, |
44 public HttpStreamRequest::Delegate { | 45 public HttpStreamRequest::Delegate { |
45 public: | 46 public: |
46 HttpNetworkTransaction(RequestPriority priority, | 47 HttpNetworkTransaction(RequestPriority priority, |
47 HttpNetworkSession* session); | 48 HttpNetworkSession* session); |
48 | 49 |
49 ~HttpNetworkTransaction() override; | 50 ~HttpNetworkTransaction() override; |
50 | 51 |
51 // HttpTransaction methods: | 52 // HttpTransaction methods: |
52 int Start(const HttpRequestInfo* request_info, | 53 int Start(const HttpRequestInfo* request_info, |
53 const CompletionCallback& callback, | 54 const CompletionCallback& callback, |
54 const BoundNetLog& net_log) override; | 55 const BoundNetLog& net_log) override; |
55 int RestartIgnoringLastError(const CompletionCallback& callback) override; | 56 int RestartIgnoringLastError(const CompletionCallback& callback) override; |
56 int RestartWithCertificate(X509Certificate* client_cert, | 57 int RestartWithCertificate(X509Certificate* client_cert, |
58 SSLPrivateKey* client_pkey, | |
57 const CompletionCallback& callback) override; | 59 const CompletionCallback& callback) override; |
58 int RestartWithAuth(const AuthCredentials& credentials, | 60 int RestartWithAuth(const AuthCredentials& credentials, |
59 const CompletionCallback& callback) override; | 61 const CompletionCallback& callback) override; |
60 bool IsReadyToRestartForAuth() override; | 62 bool IsReadyToRestartForAuth() override; |
61 | 63 |
62 int Read(IOBuffer* buf, | 64 int Read(IOBuffer* buf, |
63 int buf_len, | 65 int buf_len, |
64 const CompletionCallback& callback) override; | 66 const CompletionCallback& callback) override; |
65 void StopCaching() override; | 67 void StopCaching() override; |
66 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 68 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
351 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 353 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
352 | 354 |
353 ConnectionAttempts connection_attempts_; | 355 ConnectionAttempts connection_attempts_; |
354 | 356 |
355 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 357 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
356 }; | 358 }; |
357 | 359 |
358 } // namespace net | 360 } // namespace net |
359 | 361 |
360 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 362 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |