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

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: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 452a35ba8f3c3f8592bb0b34829ce5a343abbc99..428d3bf68ad8864c83145e84aa0afc86f837eb5b 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -408,8 +408,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(
@@ -426,7 +426,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));
}
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | content/renderer/pepper/pepper_url_loader_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698