| 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 <memory> | 10 #include <memory> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 HttpNetworkTransaction(RequestPriority priority, | 55 HttpNetworkTransaction(RequestPriority priority, |
| 56 HttpNetworkSession* session); | 56 HttpNetworkSession* session); |
| 57 | 57 |
| 58 ~HttpNetworkTransaction() override; | 58 ~HttpNetworkTransaction() override; |
| 59 | 59 |
| 60 // HttpTransaction methods: | 60 // HttpTransaction methods: |
| 61 int Start(const HttpRequestInfo* request_info, | 61 int Start(const HttpRequestInfo* request_info, |
| 62 const CompletionCallback& callback, | 62 const CompletionCallback& callback, |
| 63 const NetLogWithSource& net_log) override; | 63 const NetLogWithSource& net_log) override; |
| 64 int RestartIgnoringLastError(const CompletionCallback& callback) override; | 64 int RestartIgnoringLastError(const CompletionCallback& callback) override; |
| 65 int RestartWithCertificate(X509Certificate* client_cert, | 65 int RestartWithCertificate(scoped_refptr<X509Certificate> client_cert, |
| 66 SSLPrivateKey* client_private_key, | 66 scoped_refptr<SSLPrivateKey> client_private_key, |
| 67 const CompletionCallback& callback) override; | 67 const CompletionCallback& callback) override; |
| 68 int RestartWithAuth(const AuthCredentials& credentials, | 68 int RestartWithAuth(const AuthCredentials& credentials, |
| 69 const CompletionCallback& callback) override; | 69 const CompletionCallback& callback) override; |
| 70 bool IsReadyToRestartForAuth() override; | 70 bool IsReadyToRestartForAuth() override; |
| 71 | 71 |
| 72 int Read(IOBuffer* buf, | 72 int Read(IOBuffer* buf, |
| 73 int buf_len, | 73 int buf_len, |
| 74 const CompletionCallback& callback) override; | 74 const CompletionCallback& callback) override; |
| 75 void StopCaching() override; | 75 void StopCaching() override; |
| 76 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 76 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // Communicate lifetime of transaction to the throttler, and | 398 // Communicate lifetime of transaction to the throttler, and |
| 399 // throttled state to the transaction. | 399 // throttled state to the transaction. |
| 400 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; | 400 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; |
| 401 | 401 |
| 402 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 402 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 } // namespace net | 405 } // namespace net |
| 406 | 406 |
| 407 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 407 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |