diff options
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r-- | net/http/http_network_transaction.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h index 00e9a65..7abfcf9 100644 --- a/net/http/http_network_transaction.h +++ b/net/http/http_network_transaction.h @@ -1,4 +1,5 @@ // Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012, Code Aurora Forum. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -102,6 +103,8 @@ class HttpNetworkTransaction : public HttpTransaction, STATE_READ_HEADERS_COMPLETE, STATE_READ_BODY, STATE_READ_BODY_COMPLETE, + STATE_DRAIN_BODY_FOR_GETZIP_RETRY, + STATE_DRAIN_BODY_FOR_GETZIP_RETRY_COMPLETE, STATE_DRAIN_BODY_FOR_AUTH_RESTART, STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE, STATE_NONE @@ -137,6 +140,9 @@ class HttpNetworkTransaction : public HttpTransaction, int DoReadBodyComplete(int result); int DoDrainBodyForAuthRestart(); int DoDrainBodyForAuthRestartComplete(int result); + int DoDrainBodyForGetZipRetry(); + int DoDrainBodyForGetZipRetryComplete(int result); + void DoDrainBodyForRetryComplete( int result, bool isForAuthentication ); void BuildRequestHeaders(bool using_proxy); @@ -182,10 +188,28 @@ class HttpNetworkTransaction : public HttpTransaction, // Sets up the state machine to restart the transaction with auth. void PrepareForAuthRestart(HttpAuth::Target target); + // Sets up the state machine to restart the transaction if + // GETzip error occurred. + void PrepareForGetZipRetry(); + + // Sets up the state machine to restart the transaction. + void PrepareForRetry(bool isForAuthentication); + // Called when we don't need to drain the response body or have drained it. + // Clears request info for transaction restart for auth. + // Uses DidDrainBodyForRetry to reset connection if needed and to + // set next_state_ + void DidDrainBodyForAuthRestart(bool keep_alive); + + // Called when we don't need to drain the response body or have drained it. + // Clears request info for transaction retry caused by GETzip error. + // Uses DidDrainBodyForRetry to reset connection if needed and to + // set next_state_ + void DidDrainBodyForGetZipRetry(bool keep_alive); + // Resets |connection_| unless |keep_alive| is true, then calls // ResetStateForRestart. Sets |next_state_| appropriately. - void DidDrainBodyForAuthRestart(bool keep_alive); + void DidDrainBodyForRetry( bool keep_alive ); // Resets the members of the transaction so it can be restarted. void ResetStateForRestart(); |