summaryrefslogtreecommitdiffstats
path: root/webkit/glue/multipart_response_delegate.cc
diff options
context:
space:
mode:
authorvsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 19:01:48 +0000
committervsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 19:01:48 +0000
commitc7d5601fa3df36215e46de17d5699b40bce82fa4 (patch)
tree351e51d291a64939e25a14a6e78f2ec9f88e3906 /webkit/glue/multipart_response_delegate.cc
parentc4bc58d55fb1b29f69fc1bccc93b74e56c99b010 (diff)
downloadchromium_src-c7d5601fa3df36215e46de17d5699b40bce82fa4.zip
chromium_src-c7d5601fa3df36215e46de17d5699b40bce82fa4.tar.gz
chromium_src-c7d5601fa3df36215e46de17d5699b40bce82fa4.tar.bz2
Migrated chromium to new didReceiveData method in WebURLLoaderClient
BUG=40502 Review URL: http://codereview.chromium.org/6737026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/multipart_response_delegate.cc')
-rw-r--r--webkit/glue/multipart_response_delegate.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/webkit/glue/multipart_response_delegate.cc b/webkit/glue/multipart_response_delegate.cc
index d2c47d7..a32520e 100644
--- a/webkit/glue/multipart_response_delegate.cc
+++ b/webkit/glue/multipart_response_delegate.cc
@@ -138,9 +138,10 @@ void MultipartResponseDelegate::OnReceivedData(const char* data,
}
if (data_length > 0) {
// Send the last data chunk.
- client_->didReceiveData(loader_,
- data_.data(),
- static_cast<int>(data_length));
+ // FIXME(vsevik): rename once renamed in webkit
+ client_->didReceiveData2(loader_,
+ data_.data(),
+ static_cast<int>(data_length), -1);
}
}
size_t boundary_end_pos = boundary_pos + boundary_.length();
@@ -170,8 +171,9 @@ void MultipartResponseDelegate::OnReceivedData(const char* data,
int send_length = data_.length() - boundary_.length();
if (data_[data_.length() - 1] == '\n')
send_length = data_.length();
+ // FIXME(vsevik): rename didReceiveData2 once renamed in webkit
if (client_)
- client_->didReceiveData(loader_, data_.data(), send_length);
+ client_->didReceiveData2(loader_, data_.data(), send_length, -1);
data_ = data_.substr(send_length);
}
}
@@ -180,9 +182,10 @@ void MultipartResponseDelegate::OnCompletedRequest() {
// If we have any pending data and we're not in a header, go ahead and send
// it to WebCore.
if (!processing_headers_ && !data_.empty() && !stop_sending_ && client_) {
- client_->didReceiveData(loader_,
- data_.data(),
- static_cast<int>(data_.length()));
+ // FIXME(vsevik): rename didReceiveData2 once renamed in webkit
+ client_->didReceiveData2(loader_,
+ data_.data(),
+ static_cast<int>(data_.length()), -1);
}
}