| 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 19 matching lines...) Expand all Loading... |
| 30 namespace net { | 30 namespace net { |
| 31 | 31 |
| 32 class ClientSocketHandle; | 32 class ClientSocketHandle; |
| 33 class HttpAuthController; | 33 class HttpAuthController; |
| 34 class HttpNetworkSession; | 34 class HttpNetworkSession; |
| 35 class HttpStream; | 35 class HttpStream; |
| 36 class HttpStreamRequest; | 36 class HttpStreamRequest; |
| 37 class IOBuffer; | 37 class IOBuffer; |
| 38 class ProxyInfo; | 38 class ProxyInfo; |
| 39 class SpdySession; | 39 class SpdySession; |
| 40 class SSLPrivateKey; |
| 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_private_key, |
| 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 |