Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (149179 => 149180)
--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2013-04-26 13:09:33 UTC (rev 149179)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2013-04-26 13:16:15 UTC (rev 149180)
@@ -725,16 +725,6 @@
m_mainFrame->loader()->load(FrameLoadRequest(m_mainFrame, request));
}
-void WebPage::load(const BlackBerry::Platform::String& url, const BlackBerry::Platform::String& networkToken, bool isInitial, bool needReferer, bool forceDownload)
-{
- d->load(url, networkToken, "GET", Platform::NetworkRequest::UseProtocolCachePolicy, 0, 0, 0, 0, isInitial, false, needReferer, forceDownload);
-}
-
-void WebPage::loadExtended(const char* url, const char* networkToken, const char* method, Platform::NetworkRequest::CachePolicy cachePolicy, const char* data, size_t dataLength, const char* const* headers, size_t headersLength, bool mustHandleInternally)
-{
- d->load(url, networkToken, method, cachePolicy, data, dataLength, headers, headersLength, false, mustHandleInternally, false, false, "");
-}
-
void WebPage::loadFile(const BlackBerry::Platform::String& path, const BlackBerry::Platform::String& overrideContentType)
{
BlackBerry::Platform::String fileUrl(path);
@@ -746,7 +736,7 @@
d->load(fileUrl, BlackBerry::Platform::String::emptyString(), BlackBerry::Platform::String("GET", 3), Platform::NetworkRequest::UseProtocolCachePolicy, 0, 0, 0, 0, false, false, false, false, overrideContentType.c_str());
}
-void WebPage::download(const Platform::NetworkRequest& request)
+void WebPage::load(const Platform::NetworkRequest& request, bool needReferer, bool forceDownload)
{
vector<const char*> headers;
Platform::NetworkRequest::HeaderList& list = request.getHeaderListRef();
@@ -754,7 +744,7 @@
headers.push_back(list[i].first.c_str());
headers.push_back(list[i].second.c_str());
}
- d->load(request.getUrlRef(), BlackBerry::Platform::String::emptyString(), "GET", Platform::NetworkRequest::UseProtocolCachePolicy, 0, 0, headers.empty() ? 0 : &headers[0], headers.size(), false, false, false, true, "", request.getSuggestedSaveName().c_str());
+ d->load(request.getUrlRef(), BlackBerry::Platform::String::emptyString(), "GET", Platform::NetworkRequest::UseProtocolCachePolicy, 0, 0, headers.empty() ? 0 : &headers[0], headers.size(), false, false, needReferer, forceDownload, BlackBerry::Platform::String::emptyString(), request.getSuggestedSaveName());
}
void WebPagePrivate::loadString(const BlackBerry::Platform::String& string, const BlackBerry::Platform::String& baseURL, const BlackBerry::Platform::String& contentType, const BlackBerry::Platform::String& failingURL)
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.h (149179 => 149180)
--- trunk/Source/WebKit/blackberry/Api/WebPage.h 2013-04-26 13:09:33 UTC (rev 149179)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.h 2013-04-26 13:16:15 UTC (rev 149180)
@@ -88,15 +88,11 @@
WebPageClient* client() const;
- void load(const BlackBerry::Platform::String& url, const BlackBerry::Platform::String& networkToken, bool isInitial = false, bool needReferer = false, bool forceDownload = false);
-
- void loadExtended(const char* url, const char* networkToken, const char* method, Platform::NetworkRequest::CachePolicy = Platform::NetworkRequest::UseProtocolCachePolicy, const char* data = "" size_t dataLength = 0, const char* const* headers = 0, size_t headersLength = 0, bool mustHandleInternally = false);
-
void loadFile(const BlackBerry::Platform::String& path, const BlackBerry::Platform::String& overrideContentType = "");
void loadString(const BlackBerry::Platform::String&, const BlackBerry::Platform::String& baseURL, const BlackBerry::Platform::String& contentType = "text/html", const BlackBerry::Platform::String& failingURL = BlackBerry::Platform::String::emptyString());
- void download(const Platform::NetworkRequest&);
+ void load(const Platform::NetworkRequest&, bool needReferer = false, bool forceDownload = false);
bool executeJavaScript(const BlackBerry::Platform::String& script, _javascript_DataType& returnType, BlackBerry::Platform::String& returnValue);