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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 2349443003: Listen to didReceiveResponse() to get the response in WebViewPlugin. (Closed)
Patch Set: +comment Created 4 years, 3 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
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 81a26f43427684f980d4cb681c1315919cbe63f9..60d955bab183920a70f0eb5f2c20796e1359a7d4 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -95,23 +95,6 @@ WebViewPlugin::~WebViewPlugin() {
}
void WebViewPlugin::ReplayReceivedData(WebPlugin* plugin) {
- const WebURLResponse& response = web_frame_->dataSource()->response();
- if (!response.isNull()) {
- plugin->didReceiveResponse(response);
- size_t total_bytes = 0;
- for (std::list<std::string>::iterator it = data_.begin(); it != data_.end();
- ++it) {
- plugin->didReceiveData(
- it->c_str(), base::checked_cast<int, size_t>(it->length()));
- total_bytes += it->length();
- }
- UMA_HISTOGRAM_MEMORY_KB(
- "PluginDocument.Memory",
- (base::checked_cast<int, size_t>(total_bytes / 1024)));
- UMA_HISTOGRAM_COUNTS(
- "PluginDocument.NumChunks",
- (base::checked_cast<int, size_t>(data_.size())));
- }
// We need to transfer the |focused_| to new plugin after it loaded.
if (focused_) {
plugin->updateFocus(true, blink::WebFocusTypeNone);
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698