tizen beta release
[framework/web/webkit-efl.git] / Source / WebCore / loader / MainResourceLoader.cpp
index 2c78c08..f799da8 100755 (executable)
@@ -31,6 +31,7 @@
 #include "MainResourceLoader.h"
 
 #include "ApplicationCacheHost.h"
+#include "BackForwardController.h"
 #include "Console.h"
 #include "DOMWindow.h"
 #include "Document.h"
@@ -41,6 +42,7 @@
 #include "FrameLoader.h"
 #include "FrameLoaderClient.h"
 #include "HTMLFormElement.h"
+#include "HistoryItem.h"
 #include "InspectorInstrumentation.h"
 #include "Page.h"
 #include "ResourceError.h"
@@ -276,10 +278,6 @@ void MainResourceLoader::continueAfterContentPolicy(PolicyAction contentPolicy,
     }
 
     case PolicyDownload:
-#if ENABLE(TIZEN_DOWNLOAD)
-        frameLoader()->client()->download(m_handle.get(), request(), m_handle.get()->firstRequest(), r);
-        stopLoadingForPolicyChange();
-#else
         // m_handle can be null, e.g. when loading a substitute resource from application cache.
         if (!m_handle) {
             receivedError(cannotShowURLError());
@@ -290,7 +288,6 @@ void MainResourceLoader::continueAfterContentPolicy(PolicyAction contentPolicy,
         // It might have gone missing
         if (frameLoader())
             receivedError(interruptedForPolicyChangeError());
-#endif
         return;
 
     case PolicyIgnore: