diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WebKit/android/jni/WebIconDatabase.cpp | 33 | ||||
-rw-r--r-- | Source/WebKit/android/jni/WebIconDatabase.h | 9 |
2 files changed, 38 insertions, 4 deletions
diff --git a/Source/WebKit/android/jni/WebIconDatabase.cpp b/Source/WebKit/android/jni/WebIconDatabase.cpp index a8379e3..d5f8947 100644 --- a/Source/WebKit/android/jni/WebIconDatabase.cpp +++ b/Source/WebKit/android/jni/WebIconDatabase.cpp @@ -66,9 +66,18 @@ jobject webcoreImageToJavaBitmap(JNIEnv* env, WebCore::Image* icon) static WebIconDatabase* gIconDatabaseClient = new WebIconDatabase(); -// XXX: Called by the IconDatabase thread -void WebIconDatabase::dispatchDidAddIconForPageURL(const WTF::String& pageURL) +bool WebIconDatabase::performImport() { + // We don't do do any old-style database importing. + return true; +} + +// Called on the WebCore thread +void WebIconDatabase::didImportIconURLForPageURL(const WTF::String& pageURL) +{ + // FIXME: After http://trac.webkit.org/changeset/81719 this method is called + // on the WebCore thread, so switching threads via this queue is superfluous + // and should be removed. http://b/4565022 mNotificationsMutex.lock(); mNotifications.append(pageURL); if (!mDeliveryRequested) { @@ -78,6 +87,26 @@ void WebIconDatabase::dispatchDidAddIconForPageURL(const WTF::String& pageURL) mNotificationsMutex.unlock(); } +void WebIconDatabase::didImportIconDataForPageURL(const WTF::String& pageURL) +{ + // WebKit1 only has a single "icon did change" notification. + didImportIconURLForPageURL(pageURL); +} + +void WebIconDatabase::didChangeIconForPageURL(const WTF::String& pageURL) +{ + // WebKit1 only has a single "icon did change" notification. + didImportIconURLForPageURL(pageURL); +} + +void WebIconDatabase::didRemoveAllIcons() +{ +} + +void WebIconDatabase::didFinishURLImport() +{ +} + // Called in the WebCore thread void WebIconDatabase::RegisterForIconNotification(WebIconDatabaseClient* client) { diff --git a/Source/WebKit/android/jni/WebIconDatabase.h b/Source/WebKit/android/jni/WebIconDatabase.h index f3bb244..3011b9f 100644 --- a/Source/WebKit/android/jni/WebIconDatabase.h +++ b/Source/WebKit/android/jni/WebIconDatabase.h @@ -47,8 +47,13 @@ namespace android { class WebIconDatabase : public WebCore::IconDatabaseClient { public: WebIconDatabase() : mDeliveryRequested(false) {} - // IconDatabaseClient method - virtual void dispatchDidAddIconForPageURL(const WTF::String& pageURL); + // IconDatabaseClient methods + virtual bool performImport(); + virtual void didRemoveAllIcons(); + virtual void didImportIconURLForPageURL(const WTF::String&); + virtual void didImportIconDataForPageURL(const WTF::String&); + virtual void didChangeIconForPageURL(const WTF::String&); + virtual void didFinishURLImport(); static void RegisterForIconNotification(WebIconDatabaseClient* client); static void UnregisterForIconNotification(WebIconDatabaseClient* client); |