summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreFrameBridge.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-10-18 18:03:00 +0100
committerIain Merrick <husky@google.com>2010-10-20 15:40:37 +0100
commit583f3b2e7b569ec9f88e9c481db1eb86a8c0224b (patch)
tree671e646c2b9d028152f7ca51c4b85bd7a6f5d30a /WebKit/android/jni/WebCoreFrameBridge.h
parentdb17cf1782eab2488aab0933add6c79b21639c08 (diff)
downloadexternal_webkit-583f3b2e7b569ec9f88e9c481db1eb86a8c0224b.zip
external_webkit-583f3b2e7b569ec9f88e9c481db1eb86a8c0224b.tar.gz
external_webkit-583f3b2e7b569ec9f88e9c481db1eb86a8c0224b.tar.bz2
Implement file downloads for Chrome HTTP stack (C++ side)
Due to the way the WebView API works, downloads are handled by the Java client code via the DownloadListener interface, so we need to toss them over the JNI wall. I had to refactor WebResourceRequest slightly to save the user-agent header before it gets stripped out. I have also made it const-correct. Test: manually checked that we can download a file, with both stacks. See matching change in frameworks/base (I87e71deb) Change-Id: I8130040099d02c399d42b223444b333398628235
Diffstat (limited to 'WebKit/android/jni/WebCoreFrameBridge.h')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.h b/WebKit/android/jni/WebCoreFrameBridge.h
index cbf55c4..9e3b5db 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.h
+++ b/WebKit/android/jni/WebCoreFrameBridge.h
@@ -113,6 +113,8 @@ class WebFrame : public WebCoreRefObject {
void didReceiveAuthenticationChallenge(WebUrlLoaderClient*, const std::string& host, const std::string& realm, bool useCachedCredentials);
+ void downloadStart(const std::string& url, const std::string& userAgent, const std::string& contentDisposition, const std::string& mimetype, long long contentLength);
+
/**
* When the user initiates an action (via trackball, key-press, or touch),
* we set mUserInitiatedAction to true. If a load happens due to this click,