summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/WebIconDatabase.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-06-03 13:35:12 +0100
committerSteve Block <steveblock@google.com>2011-06-08 16:02:07 +0100
commitf25579c312629288541e80e03be1b6c08c609942 (patch)
treec8151b8925f1f25071e6a904b922860ab061bf91 /Source/WebKit/android/jni/WebIconDatabase.cpp
parent62e058dbf665f2830337230b16ac602d022b513b (diff)
downloadexternal_webkit-f25579c312629288541e80e03be1b6c08c609942.zip
external_webkit-f25579c312629288541e80e03be1b6c08c609942.tar.gz
external_webkit-f25579c312629288541e80e03be1b6c08c609942.tar.bz2
Merge WebKit at r82507: IconDatabaseClient interface expanded
See http://trac.webkit.org/changeset/81719 Change-Id: Ida2b2a8ac767182bc2c93cbe60399ed39f91c99c
Diffstat (limited to 'Source/WebKit/android/jni/WebIconDatabase.cpp')
-rw-r--r--Source/WebKit/android/jni/WebIconDatabase.cpp33
1 files changed, 31 insertions, 2 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)
{