| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 // Returns true if we have auth credentials for the given target. | 288 // Returns true if we have auth credentials for the given target. |
| 289 bool HaveAuth(HttpAuth::Target target) const; | 289 bool HaveAuth(HttpAuth::Target target) const; |
| 290 | 290 |
| 291 // Get the {scheme, host, path, port} for the authentication target | 291 // Get the {scheme, host, path, port} for the authentication target |
| 292 GURL AuthURL(HttpAuth::Target target) const; | 292 GURL AuthURL(HttpAuth::Target target) const; |
| 293 | 293 |
| 294 // Returns true if this transaction is for a WebSocket handshake | 294 // Returns true if this transaction is for a WebSocket handshake |
| 295 bool ForWebSocketHandshake() const; | 295 bool ForWebSocketHandshake() const; |
| 296 | 296 |
| 297 // Debug helper. | |
| 298 static std::string DescribeState(State state); | |
| 299 | |
| 300 void SetStream(HttpStream* stream); | 297 void SetStream(HttpStream* stream); |
| 301 | 298 |
| 302 void CopyConnectionAttemptsFromStreamRequest(); | 299 void CopyConnectionAttemptsFromStreamRequest(); |
| 303 | 300 |
| 304 scoped_refptr<HttpAuthController> | 301 scoped_refptr<HttpAuthController> |
| 305 auth_controllers_[HttpAuth::AUTH_NUM_TARGETS]; | 302 auth_controllers_[HttpAuth::AUTH_NUM_TARGETS]; |
| 306 | 303 |
| 307 // Whether this transaction is waiting for proxy auth, server auth, or is | 304 // Whether this transaction is waiting for proxy auth, server auth, or is |
| 308 // not waiting for any auth at all. |pending_auth_target_| is read and | 305 // not waiting for any auth at all. |pending_auth_target_| is read and |
| 309 // cleared by RestartWithAuth(). | 306 // cleared by RestartWithAuth(). |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 ConnectionAttempts connection_attempts_; | 377 ConnectionAttempts connection_attempts_; |
| 381 IPEndPoint remote_endpoint_; | 378 IPEndPoint remote_endpoint_; |
| 382 // Network error details for this transaction. | 379 // Network error details for this transaction. |
| 383 NetErrorDetails net_error_details_; | 380 NetErrorDetails net_error_details_; |
| 384 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 381 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 385 }; | 382 }; |
| 386 | 383 |
| 387 } // namespace net | 384 } // namespace net |
| 388 | 385 |
| 389 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 386 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |