| 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 NetLogWithSource; | |
| 23 class HttpRequestHeaders; | 22 class HttpRequestHeaders; |
| 24 struct HttpRequestInfo; | 23 struct HttpRequestInfo; |
| 25 class HttpResponseInfo; | 24 class HttpResponseInfo; |
| 26 class IOBuffer; | 25 class IOBuffer; |
| 27 struct LoadTimingInfo; | 26 struct LoadTimingInfo; |
| 27 class NetLogWithSource; |
| 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 |
| 33 // Represents a single HTTP transaction (i.e., a single request/response pair). | 33 // Represents a single HTTP transaction (i.e., a single request/response pair). |
| 34 // HTTP redirects are not followed and authentication challenges are not | 34 // HTTP redirects are not followed and authentication challenges are not |
| 35 // answered. Cookies are assumed to be managed by the caller. | 35 // answered. Cookies are assumed to be managed by the caller. |
| 36 class NET_EXPORT_PRIVATE HttpTransaction { | 36 class NET_EXPORT_PRIVATE HttpTransaction { |
| 37 public: | 37 public: |
| (...skipping 150 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 |