Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
index 7f43290a4dd296830ef59a298d841897d73f9a5d..3d6c90acd4615694f6f146dc95b4d164e6205a08 100644 |
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
@@ -99,7 +99,6 @@ |
#include "web/WebDevToolsFrontendImpl.h" |
#include "web/WebLocalFrameImpl.h" |
#include "web/WebPluginContainerImpl.h" |
-#include "web/WebPluginLoadObserver.h" |
#include "web/WebViewImpl.h" |
#include "wtf/StringExtras.h" |
#include "wtf/text/CString.h" |
@@ -479,37 +478,17 @@ void FrameLoaderClientImpl::dispatchDidCommitLoad(HistoryItem* item, HistoryComm |
void FrameLoaderClientImpl::dispatchDidFailProvisionalLoad( |
const ResourceError& error, HistoryCommitType commitType) |
{ |
- OwnPtrWillBeRawPtr<WebPluginLoadObserver> observer = pluginLoadObserver(m_webFrame->frame()->loader().provisionalDocumentLoader()); |
m_webFrame->didFail(error, true, commitType); |
- if (observer) |
- observer->didFailLoading(error); |
} |
void FrameLoaderClientImpl::dispatchDidFailLoad(const ResourceError& error, HistoryCommitType commitType) |
{ |
- OwnPtrWillBeRawPtr<WebPluginLoadObserver> observer = pluginLoadObserver(m_webFrame->frame()->loader().documentLoader()); |
m_webFrame->didFail(error, false, commitType); |
- if (observer) |
- observer->didFailLoading(error); |
- |
- // Don't clear the redirect chain, this will happen in the middle of client |
- // redirects, and we need the context. The chain will be cleared when the |
- // provisional load succeeds or fails, not the "real" one. |
} |
void FrameLoaderClientImpl::dispatchDidFinishLoad() |
{ |
- OwnPtrWillBeRawPtr<WebPluginLoadObserver> observer = pluginLoadObserver(m_webFrame->frame()->loader().documentLoader()); |
- |
- if (m_webFrame->client()) |
- m_webFrame->client()->didFinishLoad(m_webFrame); |
- |
- if (observer) |
- observer->didFinishLoading(); |
- |
- // Don't clear the redirect chain, this will happen in the middle of client |
- // redirects, and we need the context. The chain will be cleared when the |
- // provisional load succeeds or fails, not the "real" one. |
+ m_webFrame->didFinish(); |
} |
void FrameLoaderClientImpl::dispatchDidChangeThemeColor() |
@@ -845,11 +824,6 @@ ObjectContentType FrameLoaderClientImpl::objectContentType( |
return ObjectContentNone; |
} |
-PassOwnPtrWillBeRawPtr<WebPluginLoadObserver> FrameLoaderClientImpl::pluginLoadObserver(DocumentLoader* loader) |
-{ |
- return WebDataSourceImpl::fromDocumentLoader(loader)->releasePluginLoadObserver(); |
-} |
- |
WebCookieJar* FrameLoaderClientImpl::cookieJar() const |
{ |
if (!m_webFrame->client()) |