| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ |
| 6 #define NET_HTTP_HTTP_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // used, for example, to continue past various SSL related errors. | 79 // used, for example, to continue past various SSL related errors. |
| 80 // | 80 // |
| 81 // Not all errors can be ignored using this method. See error code | 81 // Not all errors can be ignored using this method. See error code |
| 82 // descriptions for details about errors that can be ignored. | 82 // descriptions for details about errors that can be ignored. |
| 83 // | 83 // |
| 84 // NOTE: The transaction is not responsible for deleting the callback object. | 84 // NOTE: The transaction is not responsible for deleting the callback object. |
| 85 // | 85 // |
| 86 virtual int RestartIgnoringLastError(const CompletionCallback& callback) = 0; | 86 virtual int RestartIgnoringLastError(const CompletionCallback& callback) = 0; |
| 87 | 87 |
| 88 // Restarts the HTTP transaction with a client certificate. | 88 // Restarts the HTTP transaction with a client certificate. |
| 89 virtual int RestartWithCertificate(X509Certificate* client_cert, | 89 virtual int RestartWithCertificate( |
| 90 SSLPrivateKey* client_private_key, | 90 scoped_refptr<X509Certificate> client_cert, |
| 91 const CompletionCallback& callback) = 0; | 91 scoped_refptr<SSLPrivateKey> client_private_key, |
| 92 const CompletionCallback& callback) = 0; |
| 92 | 93 |
| 93 // Restarts the HTTP transaction with authentication credentials. | 94 // Restarts the HTTP transaction with authentication credentials. |
| 94 virtual int RestartWithAuth(const AuthCredentials& credentials, | 95 virtual int RestartWithAuth(const AuthCredentials& credentials, |
| 95 const CompletionCallback& callback) = 0; | 96 const CompletionCallback& callback) = 0; |
| 96 | 97 |
| 97 // Returns true if auth is ready to be continued. Callers should check | 98 // Returns true if auth is ready to be continued. Callers should check |
| 98 // this value anytime Start() completes: if it is true, the transaction | 99 // this value anytime Start() completes: if it is true, the transaction |
| 99 // can be resumed with RestartWithAuth(L"", L"", callback) to resume | 100 // can be resumed with RestartWithAuth(L"", L"", callback) to resume |
| 100 // the automatic auth exchange. This notification gives the caller a | 101 // the automatic auth exchange. This notification gives the caller a |
| 101 // chance to process the response headers from all of the intermediate | 102 // chance to process the response headers from all of the intermediate |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 194 |
| 194 // Resumes the transaction after being deferred. | 195 // Resumes the transaction after being deferred. |
| 195 virtual int ResumeNetworkStart() = 0; | 196 virtual int ResumeNetworkStart() = 0; |
| 196 | 197 |
| 197 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; | 198 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace net | 201 } // namespace net |
| 201 | 202 |
| 202 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 203 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
| OLD | NEW |