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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index eb7bedf9e8492582942cbe4242a0bf950248b1c3..71dfa1bfd5d63040bb9503701165f9f5fb59c9c7 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1975,6 +1975,17 @@ void WebLocalFrameImpl::didFail(const ResourceError& error, bool wasProvisional,
client()->didFailProvisionalLoad(this, webError, webCommitType);
else
client()->didFailLoad(this, webError, webCommitType);
+ if (WebPluginContainerImpl* plugin = pluginContainerFromFrame(frame()))
+ plugin->didFailLoading(error);
+}
+
+void WebLocalFrameImpl::didFinish()
+{
+ if (!client())
+ return;
+ client()->didFinishLoad(this);
+ if (WebPluginContainerImpl* plugin = pluginContainerFromFrame(frame()))
+ plugin->didFinishLoading();
}
void WebLocalFrameImpl::setCanHaveScrollbars(bool canHaveScrollbars)
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698