| Index: net/url_request/sdch_dictionary_fetcher.h
|
| diff --git a/net/url_request/sdch_dictionary_fetcher.h b/net/url_request/sdch_dictionary_fetcher.h
|
| index 79d87782e13ece5ef53f671d86409daed0745897..5aec23d19761575e9198dad9e480577003743e76 100644
|
| --- a/net/url_request/sdch_dictionary_fetcher.h
|
| +++ b/net/url_request/sdch_dictionary_fetcher.h
|
| @@ -61,17 +61,24 @@ class NET_EXPORT SdchDictionaryFetcher : public URLRequest::Delegate,
|
| private:
|
| enum State {
|
| STATE_NONE,
|
| - STATE_IDLE,
|
| - STATE_REQUEST_STARTED,
|
| - STATE_REQUEST_READING,
|
| + STATE_SEND_REQUEST,
|
| + STATE_SEND_REQUEST_COMPLETE,
|
| + STATE_READ_BODY,
|
| + STATE_READ_BODY_COMPLETE,
|
| STATE_REQUEST_COMPLETE,
|
| };
|
|
|
| + // Map the number of bytes read and the error code into a single
|
| + // status value, either positive (bytes read), 0 (end of file), or
|
| + // negative (error code).
|
| + int GetReadResult(int bytes_read);
|
| +
|
| // State machine implementation.
|
| int DoLoop(int rv);
|
| - int DoDispatchRequest(int rv);
|
| - int DoRequestStarted(int rv);
|
| - int DoRead(int rv);
|
| + int DoSendRequest(int rv);
|
| + int DoSendRequestComplete(int rv);
|
| + int DoReadBody(int rv);
|
| + int DoReadBodyComplete(int rv);
|
| int DoCompleteRequest(int rv);
|
|
|
| State next_state_;
|
|
|