Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1975)

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 6819528357b5d6520c07f28bb1916ac008cd3d34..d4544846e5f5ddfec52d17223800eb60aa3d531a 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -406,8 +406,8 @@ void PepperPluginInstanceImpl::ExternalDocumentLoader::ReplayReceivedData(
WebURLLoaderClient* document_loader) {
for (std::list<std::string>::iterator it = data_.begin(); it != data_.end();
++it) {
- document_loader->didReceiveData(
- NULL, it->c_str(), it->length(), 0 /* encoded_data_length */);
+ document_loader->didReceiveData(NULL, it->c_str(), it->length(),
+ 0 /* encoded_data_length */, it->length());
}
if (finished_loading_) {
document_loader->didFinishLoading(
@@ -424,7 +424,8 @@ void PepperPluginInstanceImpl::ExternalDocumentLoader::didReceiveData(
WebURLLoader* loader,
const char* data,
int data_length,
- int encoded_data_length) {
+ int encoded_data_length,
+ int encoded_body_length) {
data_.push_back(std::string(data, data_length));
}

Powered by Google App Engine
This is Rietveld 408576698