diff options
author | Patrick Scott <phanna@android.com> | 2010-11-11 13:14:26 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2010-11-15 09:19:00 -0500 |
commit | ff1576a1bd6302d6c9988912d17e47f325242574 (patch) | |
tree | 8c80acadf120ea70ddd76dc52214b536e15e6435 /WebKit/android/jni/WebCoreFrameBridge.h | |
parent | 649040c55ad0f299f58ae83062b40b29f3825fb4 (diff) | |
download | external_webkit-ff1576a1bd6302d6c9988912d17e47f325242574.zip external_webkit-ff1576a1bd6302d6c9988912d17e47f325242574.tar.gz external_webkit-ff1576a1bd6302d6c9988912d17e47f325242574.tar.bz2 |
Allow applications to intercept requests.
The api returns a response containing the mime type, encoding, and an optional
InputStream for reading data. Move the asset and content url logic into the
new api to consolidate some code.
Requires a change in frameworks/base.
Bug: 2905943
Change-Id: Ic7af410308872042c412aedf62e589f6d2095782
Diffstat (limited to 'WebKit/android/jni/WebCoreFrameBridge.h')
-rw-r--r-- | WebKit/android/jni/WebCoreFrameBridge.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.h b/WebKit/android/jni/WebCoreFrameBridge.h index 2d2b571..027c9ca 100644 --- a/WebKit/android/jni/WebCoreFrameBridge.h +++ b/WebKit/android/jni/WebCoreFrameBridge.h @@ -50,6 +50,7 @@ namespace android { class WebViewCore; class WebUrlLoaderClient; +class UrlInterceptResponse; // one instance of WebFrame per Page for calling into Java's BrowserFrame class WebFrame : public WebCoreRefObject { @@ -60,12 +61,12 @@ class WebFrame : public WebCoreRefObject { // helper function static WebFrame* getWebFrame(const WebCore::Frame* frame); - int inputStreamForAndroidResource(const char* url); - virtual PassRefPtr<WebCore::ResourceLoaderAndroid> startLoadingResource(WebCore::ResourceHandle*, const WebCore::ResourceRequest& request, bool mainResource, bool synchronous); + UrlInterceptResponse* shouldInterceptRequest(const WTF::String& url); + void reportError(int errorCode, const WTF::String& description, const WTF::String& failingUrl); |