diff options
Diffstat (limited to 'webkit/glue/multipart_response_delegate.cc')
-rw-r--r-- | webkit/glue/multipart_response_delegate.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/webkit/glue/multipart_response_delegate.cc b/webkit/glue/multipart_response_delegate.cc index f45ec0f..3a4f053 100644 --- a/webkit/glue/multipart_response_delegate.cc +++ b/webkit/glue/multipart_response_delegate.cc @@ -62,7 +62,7 @@ MultipartResponseDelegate::MultipartResponseDelegate( : client_(client), loader_(loader), original_response_(response), - raw_data_length_(0), + encoded_data_length_(0), boundary_("--"), first_received_data_(true), processing_headers_(false), @@ -78,7 +78,7 @@ MultipartResponseDelegate::MultipartResponseDelegate( void MultipartResponseDelegate::OnReceivedData(const char* data, int data_len, - int raw_data_length) { + int encoded_data_length) { // stop_sending_ means that we've already received the final boundary token. // The server should stop sending us data at this point, but if it does, we // just throw it away. @@ -86,7 +86,7 @@ void MultipartResponseDelegate::OnReceivedData(const char* data, return; data_.append(data, data_len); - raw_data_length_ += raw_data_length; + encoded_data_length_ += encoded_data_length; if (first_received_data_) { // Some servers don't send a boundary token before the first chunk of // data. We handle this case anyway (Gecko does too). @@ -144,8 +144,8 @@ void MultipartResponseDelegate::OnReceivedData(const char* data, client_->didReceiveData(loader_, data_.data(), static_cast<int>(data_length), - raw_data_length_); - raw_data_length_ = 0; + encoded_data_length_); + encoded_data_length_ = 0; } } size_t boundary_end_pos = boundary_pos + boundary_.length(); @@ -179,9 +179,9 @@ void MultipartResponseDelegate::OnReceivedData(const char* data, client_->didReceiveData(loader_, data_.data(), send_length, - raw_data_length_); + encoded_data_length_); data_ = data_.substr(send_length); - raw_data_length_ = 0; + encoded_data_length_ = 0; } } @@ -192,8 +192,8 @@ void MultipartResponseDelegate::OnCompletedRequest() { client_->didReceiveData(loader_, data_.data(), static_cast<int>(data_.length()), - raw_data_length_); - raw_data_length_ = 0; + encoded_data_length_); + encoded_data_length_ = 0; } } |