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" |
11 #include "net/base/load_states.h" | 11 #include "net/base/load_states.h" |
12 #include "net/base/net_error_details.h" | 12 #include "net/base/net_error_details.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
15 #include "net/base/upload_progress.h" | 15 #include "net/base/upload_progress.h" |
16 #include "net/socket/connection_attempts.h" | 16 #include "net/socket/connection_attempts.h" |
17 #include "net/websockets/websocket_handshake_stream_base.h" | 17 #include "net/websockets/websocket_handshake_stream_base.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 class AuthCredentials; | 21 class AuthCredentials; |
22 class BoundNetLog; | 22 class NetLogWithSource; |
23 class HttpRequestHeaders; | 23 class HttpRequestHeaders; |
24 struct HttpRequestInfo; | 24 struct HttpRequestInfo; |
25 class HttpResponseInfo; | 25 class HttpResponseInfo; |
26 class IOBuffer; | 26 class IOBuffer; |
27 struct LoadTimingInfo; | 27 struct LoadTimingInfo; |
28 class ProxyInfo; | 28 class ProxyInfo; |
29 class QuicServerInfo; | 29 class QuicServerInfo; |
30 class SSLPrivateKey; | 30 class SSLPrivateKey; |
31 class X509Certificate; | 31 class X509Certificate; |
32 | 32 |
(...skipping 26 matching lines...) Expand all Loading... |
59 // the transaction could not be started. | 59 // the transaction could not be started. |
60 // | 60 // |
61 // Regardless of the return value, the caller is expected to keep the | 61 // Regardless of the return value, the caller is expected to keep the |
62 // request_info object alive until Destroy is called on the transaction. | 62 // request_info object alive until Destroy is called on the transaction. |
63 // | 63 // |
64 // NOTE: The transaction is not responsible for deleting the callback object. | 64 // NOTE: The transaction is not responsible for deleting the callback object. |
65 // | 65 // |
66 // Profiling information for the request is saved to |net_log| if non-NULL. | 66 // Profiling information for the request is saved to |net_log| if non-NULL. |
67 virtual int Start(const HttpRequestInfo* request_info, | 67 virtual int Start(const HttpRequestInfo* request_info, |
68 const CompletionCallback& callback, | 68 const CompletionCallback& callback, |
69 const BoundNetLog& net_log) = 0; | 69 const NetLogWithSource& net_log) = 0; |
70 | 70 |
71 // Restarts the HTTP transaction, ignoring the last error. This call can | 71 // Restarts the HTTP transaction, ignoring the last error. This call can |
72 // only be made after a call to Start (or RestartIgnoringLastError) failed. | 72 // only be made after a call to Start (or RestartIgnoringLastError) failed. |
73 // Once Read has been called, this method cannot be called. This method is | 73 // Once Read has been called, this method cannot be called. This method is |
74 // used, for example, to continue past various SSL related errors. | 74 // used, for example, to continue past various SSL related errors. |
75 // | 75 // |
76 // Not all errors can be ignored using this method. See error code | 76 // Not all errors can be ignored using this method. See error code |
77 // descriptions for details about errors that can be ignored. | 77 // descriptions for details about errors that can be ignored. |
78 // | 78 // |
79 // NOTE: The transaction is not responsible for deleting the callback object. | 79 // NOTE: The transaction is not responsible for deleting the callback object. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 // Resumes the transaction after being deferred. | 189 // Resumes the transaction after being deferred. |
190 virtual int ResumeNetworkStart() = 0; | 190 virtual int ResumeNetworkStart() = 0; |
191 | 191 |
192 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; | 192 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; |
193 }; | 193 }; |
194 | 194 |
195 } // namespace net | 195 } // namespace net |
196 | 196 |
197 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 197 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
OLD | NEW |