diff options
| author | Andrei Popescu <andreip@google.com> | 2009-12-11 10:42:59 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-11 10:42:59 -0800 |
| commit | da8d42def98a28bfef84ce5809d13ae1710a342c (patch) | |
| tree | aa79280373d0f3cba88bfc75c8a9da71c0771c78 /WebKit/android/jni/WebCoreResourceLoader.h | |
| parent | d1c78be28d5a9435b3acc735ca8b22e547bde00c (diff) | |
| parent | 80e68b43c3da64848db8edc7d8e8fe095888e42e (diff) | |
| download | external_webkit-da8d42def98a28bfef84ce5809d13ae1710a342c.zip external_webkit-da8d42def98a28bfef84ce5809d13ae1710a342c.tar.gz external_webkit-da8d42def98a28bfef84ce5809d13ae1710a342c.tar.bz2 | |
am 80e68b43: Break the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.
Merge commit '80e68b43c3da64848db8edc7d8e8fe095888e42e' into eclair-mr2-plus-aosp
* commit '80e68b43c3da64848db8edc7d8e8fe095888e42e':
Break the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.
Diffstat (limited to 'WebKit/android/jni/WebCoreResourceLoader.h')
| -rw-r--r-- | WebKit/android/jni/WebCoreResourceLoader.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/WebKit/android/jni/WebCoreResourceLoader.h b/WebKit/android/jni/WebCoreResourceLoader.h index 8a4d8d8..d24a43e 100644 --- a/WebKit/android/jni/WebCoreResourceLoader.h +++ b/WebKit/android/jni/WebCoreResourceLoader.h @@ -26,29 +26,28 @@ #ifndef ANDROID_WEBKIT_RESOURCELOADLISTENER_H #define ANDROID_WEBKIT_RESOURCELOADLISTENER_H -#include "KURL.h" - -#include "WebCoreRefObject.h" +#include <KURL.h> +#include <ResourceLoaderAndroid.h> #include <jni.h> namespace android { -class WebCoreResourceLoader : public WebCoreRefObject +class WebCoreResourceLoader : public WebCore::ResourceLoaderAndroid { public: - WebCoreResourceLoader(JNIEnv *env, jobject jLoadListener); + static PassRefPtr<WebCore::ResourceLoaderAndroid> create(JNIEnv *env, jobject jLoadListener); virtual ~WebCoreResourceLoader(); /** * Call to java to cancel the current load. */ - void cancel(); + virtual void cancel(); /** * Call to java to download the current load rather than feed it * back to WebCore */ - void downloadFile(); + virtual void downloadFile(); /** * Call to java to find out if this URL is in the cache @@ -65,6 +64,8 @@ public: static jstring RedirectedToUrl(JNIEnv*, jobject, jstring, jstring, jint); static void Error(JNIEnv*, jobject, jint, jstring, jstring); +protected: + WebCoreResourceLoader(JNIEnv *env, jobject jLoadListener); private: jobject mJLoader; }; |
