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..d3fcee99de2644e079b3f994fb6c0fec19056f69 100644 |
--- a/net/url_request/sdch_dictionary_fetcher.h |
+++ b/net/url_request/sdch_dictionary_fetcher.h |
@@ -61,17 +61,23 @@ 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, |
}; |
+ // Figure out and return proper error code based on request status |
+ // and bytes read, and do state transition if the request is complete. |
+ int HandleReadCompletion(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_; |