summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframeloaderclient_impl.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-01 22:31:35 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-01 22:31:35 +0000
commitde56f378336660dcc848763c80267a5e063ae47d (patch)
tree7f551b88923b35bc4022ce6ab3a3f602fb60d91c /webkit/glue/webframeloaderclient_impl.cc
parentdc4f63c80cb90efe594131030aad6776e5945fcc (diff)
downloadchromium_src-de56f378336660dcc848763c80267a5e063ae47d.zip
chromium_src-de56f378336660dcc848763c80267a5e063ae47d.tar.gz
chromium_src-de56f378336660dcc848763c80267a5e063ae47d.tar.bz2
Merge the chrome_webkit_merge_branch back on to trunk. This brings us
up to webkit@36102. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframeloaderclient_impl.cc')
-rw-r--r--webkit/glue/webframeloaderclient_impl.cc60
1 files changed, 15 insertions, 45 deletions
diff --git a/webkit/glue/webframeloaderclient_impl.cc b/webkit/glue/webframeloaderclient_impl.cc
index d8fed70..c620c97 100644
--- a/webkit/glue/webframeloaderclient_impl.cc
+++ b/webkit/glue/webframeloaderclient_impl.cc
@@ -119,11 +119,6 @@ bool WebFrameLoaderClient::hasFrameView() const {
return webframe_->webview_impl() != NULL;
}
-bool WebFrameLoaderClient::privateBrowsingEnabled() const {
- // FIXME
- return false;
-}
-
void WebFrameLoaderClient::makeDocumentView() {
webframe_->CreateFrameView();
}
@@ -132,9 +127,6 @@ void WebFrameLoaderClient::makeRepresentation(DocumentLoader*) {
has_representation_ = true;
}
-void WebFrameLoaderClient::setDocumentViewFromCachedPage(CachedPage*) {
- // FIXME
-}
void WebFrameLoaderClient::forceLayout() {
// FIXME
}
@@ -159,10 +151,6 @@ void WebFrameLoaderClient::detachedFromParent4() {
webframe_->Closing();
}
-void WebFrameLoaderClient::loadedFromCachedPage() {
- // FIXME
-}
-
// This function is responsible for associating the |identifier| with a given
// subresource load. The following functions that accept an |identifier| are
// called for each subresource, so they should not be dispatched to the
@@ -402,6 +390,11 @@ bool WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache(
void WebFrameLoaderClient::dispatchDidHandleOnloadEvents() {
WebViewImpl* webview = webframe_->webview_impl();
+ // During the onload event of a subframe, the subframe can be removed. In
+ // that case, we have no webview. This is covered by
+ // LayoutTests/fast/dom/replaceChild.html
+ if (!webview)
+ return;
WebViewDelegate* d = webview->delegate();
if (d)
@@ -856,6 +849,7 @@ void WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction(
WebCore::FramePolicyFunction function,
const WebCore::NavigationAction& action,
const WebCore::ResourceRequest& request,
+ PassRefPtr<WebCore::FormState> form_state,
const WebCore::String& frame_name) {
WindowOpenDisposition disposition;
if (!ActionSpecifiesDisposition(action, &disposition))
@@ -899,7 +893,8 @@ static WebNavigationType NavigationTypeToWebNavigationType(
void WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(
WebCore::FramePolicyFunction function,
const WebCore::NavigationAction& action,
- const WebCore::ResourceRequest& request) {
+ const WebCore::ResourceRequest& request,
+ PassRefPtr<WebCore::FormState> form_state) {
PolicyAction policy_action = PolicyUse;
WebViewImpl* wv = webframe_->webview_impl();
@@ -991,10 +986,6 @@ void WebFrameLoaderClient::setMainDocumentError(DocumentLoader*,
}
}
-void WebFrameLoaderClient::clearUnarchivingState(DocumentLoader*) {
- // FIXME
-}
-
void WebFrameLoaderClient::postProgressStartedNotification() {
if (hasWebView()) {
WebViewDelegate* d = webframe_->webview_impl()->delegate();
@@ -1081,15 +1072,7 @@ void WebFrameLoaderClient::finishedLoading(DocumentLoader* dl) {
}
}
-void WebFrameLoaderClient::finalSetupForReplace(DocumentLoader*) {
- // FIXME
-}
-
-void WebFrameLoaderClient::updateGlobalHistoryForStandardLoad(const KURL& kurl) {
-}
-
-void WebFrameLoaderClient::updateGlobalHistoryForReload(const KURL&) {
- // FIXME: this is for updating the visit time.
+void WebFrameLoaderClient::updateGlobalHistory(const KURL& kurl) {
}
bool WebFrameLoaderClient::shouldGoToHistoryItem(HistoryItem*) const {
@@ -1121,11 +1104,17 @@ ResourceError WebFrameLoaderClient::cannotShowMIMETypeError(const ResourceRespon
// FIXME
return ResourceError();
}
+
ResourceError WebFrameLoaderClient::fileDoesNotExistError(const ResourceResponse&) {
// FIXME
return ResourceError();
}
+ResourceError WebFrameLoaderClient::pluginWillHandleLoadError(const WebCore::ResourceResponse&) {
+ // FIXME
+ return ResourceError();
+}
+
bool WebFrameLoaderClient::shouldFallBack(const ResourceError& error) {
// This method is called when we fail to load the URL for an <object> tag
// that has fallback content (child elements) and is being loaded as a frame.
@@ -1136,25 +1125,6 @@ bool WebFrameLoaderClient::shouldFallBack(const ResourceError& error) {
return error.errorCode() != net::ERR_ABORTED;
}
-void WebFrameLoaderClient::setDefersLoading(bool) {
- // FIXME
-}
-
-bool WebFrameLoaderClient::willUseArchive(ResourceLoader*, const ResourceRequest&, const KURL& originalURL) const {
- // FIXME
- return false;
-}
-bool WebFrameLoaderClient::isArchiveLoadPending(ResourceLoader*) const {
- // FIXME
- return false;
-}
-void WebFrameLoaderClient::cancelPendingArchiveLoad(ResourceLoader*) {
- // FIXME
-}
-void WebFrameLoaderClient::clearArchivedResources() {
- // FIXME
-}
-
bool WebFrameLoaderClient::canHandleRequest(const ResourceRequest&) const {
// FIXME: this appears to be used only by the context menu code to determine
// if "open" should be displayed in the menu when clicking on a link.