summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/WebKit/android/jni/WebCoreFrameBridge.cpp7
-rw-r--r--Source/WebKit/android/jni/WebCoreFrameBridge.h9
2 files changed, 4 insertions, 12 deletions
diff --git a/Source/WebKit/android/jni/WebCoreFrameBridge.cpp b/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
index 4350eb6..7f791ea 100644
--- a/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -981,7 +981,6 @@ WebFrame::didReceiveAuthenticationChallenge(WebUrlLoaderClient* client, const st
env->DeleteLocalRef(jRealm);
checkException(env);
}
-#endif
void
WebFrame::reportSslCertError(WebUrlLoaderClient* client, int cert_error, const std::string& cert, const std::string& url)
@@ -1024,7 +1023,6 @@ WebFrame::requestClientCert(WebUrlLoaderClient* client, const std::string& hostA
checkException(env);
}
-#if USE(CHROME_NETWORK_STACK)
void
WebFrame::downloadStart(const std::string& url, const std::string& userAgent, const std::string& contentDisposition, const std::string& mimetype, long long contentLength)
{
@@ -1082,9 +1080,6 @@ WebFrame::didFinishLoading() {
checkException(env);
}
-#endif
-
-#if USE(CHROME_NETWORK_STACK)
void WebFrame::setCertificate(const std::string& cert)
{
#ifdef ANDROID_INSTRUMENT
@@ -1105,7 +1100,7 @@ void WebFrame::setCertificate(const std::string& cert)
env->DeleteLocalRef(jCert);
checkException(env);
}
-#endif
+#endif // USE(CHROME_NETWORK_STACK)
void WebFrame::autoLogin(const std::string& loginHeader)
{
diff --git a/Source/WebKit/android/jni/WebCoreFrameBridge.h b/Source/WebKit/android/jni/WebCoreFrameBridge.h
index 2b3f5bd..eaee63c 100644
--- a/Source/WebKit/android/jni/WebCoreFrameBridge.h
+++ b/Source/WebKit/android/jni/WebCoreFrameBridge.h
@@ -117,21 +117,18 @@ class WebFrame : public WebCoreRefObject {
float density() const;
+#if USE(CHROME_NETWORK_STACK)
void didReceiveAuthenticationChallenge(WebUrlLoaderClient*, const std::string& host, const std::string& realm, bool useCachedCredentials, bool suppressDialog);
-
void reportSslCertError(WebUrlLoaderClient* client, int cert_error, const std::string& cert, const std::string& url);
-
void requestClientCert(WebUrlLoaderClient* client, const std::string& hostAndPort);
-
void downloadStart(const std::string& url, const std::string& userAgent, const std::string& contentDisposition, const std::string& mimetype, long long contentLength);
-
void didReceiveData(const char* data, int size);
-
void didFinishLoading();
+ void setCertificate(const std::string& cert);
+#endif
void maybeSavePassword(WebCore::Frame* frame, const WebCore::ResourceRequest& request);
- void setCertificate(const std::string& cert);
// Parse the x-auto-login header and propagate the parameters to the
// application.