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 "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
9 #include "net/base/load_states.h" | 9 #include "net/base/load_states.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 #include "net/base/request_priority.h" | 11 #include "net/base/request_priority.h" |
12 #include "net/base/upload_progress.h" | 12 #include "net/base/upload_progress.h" |
| 13 #include "net/socket/connection_attempts.h" |
13 #include "net/websockets/websocket_handshake_stream_base.h" | 14 #include "net/websockets/websocket_handshake_stream_base.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 | 17 |
17 class AuthCredentials; | 18 class AuthCredentials; |
18 class BoundNetLog; | 19 class BoundNetLog; |
19 class HttpRequestHeaders; | 20 class HttpRequestHeaders; |
20 struct HttpRequestInfo; | 21 struct HttpRequestInfo; |
21 class HttpResponseInfo; | 22 class HttpResponseInfo; |
22 class IOBuffer; | 23 class IOBuffer; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 virtual void SetBeforeNetworkStartCallback( | 168 virtual void SetBeforeNetworkStartCallback( |
168 const BeforeNetworkStartCallback& callback) = 0; | 169 const BeforeNetworkStartCallback& callback) = 0; |
169 | 170 |
170 // Set the callback to receive notification just before a proxy request | 171 // Set the callback to receive notification just before a proxy request |
171 // is to be sent. | 172 // is to be sent. |
172 virtual void SetBeforeProxyHeadersSentCallback( | 173 virtual void SetBeforeProxyHeadersSentCallback( |
173 const BeforeProxyHeadersSentCallback& callback) = 0; | 174 const BeforeProxyHeadersSentCallback& callback) = 0; |
174 | 175 |
175 // Resumes the transaction after being deferred. | 176 // Resumes the transaction after being deferred. |
176 virtual int ResumeNetworkStart() = 0; | 177 virtual int ResumeNetworkStart() = 0; |
| 178 |
| 179 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; |
177 }; | 180 }; |
178 | 181 |
179 } // namespace net | 182 } // namespace net |
180 | 183 |
181 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 184 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
OLD | NEW |