summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-13 12:51:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 20:50:05 +0200
commitd441d6f39bb846989d95bcf5caf387b42414718d (patch)
treee367e64a75991c554930278175d403c072de6bb8 /Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h
parent0060b2994c07842f4c59de64b5e3e430525c4b90 (diff)
downloadqtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h')
-rw-r--r--Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h b/Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h
index 97197d8d6..69b7965ed 100644
--- a/Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h
+++ b/Source/WebKit2/UIProcess/qt/QtWebIconDatabaseClient.h
@@ -21,47 +21,37 @@
#ifndef QtWebIconDatabaseClient_h
#define QtWebIconDatabaseClient_h
-#include "WKIconDatabase.h"
#include "qwebkitglobal.h"
#include <QtCore/QObject>
-#include <QtCore/QSize>
-#include <wtf/RefPtr.h>
-#include <wtf/Threading.h>
+#include <WKIconDatabase.h>
QT_BEGIN_NAMESPACE
class QImage;
class QUrl;
QT_END_NAMESPACE
-namespace WTF {
-class String;
-}
-
namespace WebKit {
-class WebContext;
-class WebIconDatabase;
-
class QtWebIconDatabaseClient : public QObject {
Q_OBJECT
public:
- QtWebIconDatabaseClient(WebContext*);
+ QtWebIconDatabaseClient(WKContextRef);
~QtWebIconDatabaseClient();
- WTF::String iconForPageURL(const WTF::String& pageURL);
- QImage iconImageForPageURL(const WTF::String& pageURL, const QSize& iconSize = QSize(32, 32));
+ QImage iconImageForPageURL(const QString&);
+
+ void retainIconForPageURL(const QString&);
+ void releaseIconForPageURL(const QString&);
- void retainIconForPageURL(const WTF::String&);
- void releaseIconForPageURL(const WTF::String&);
+ static unsigned updateID();
public:
Q_SIGNAL void iconChangedForPageURL(const QString& pageURL);
private:
static void didChangeIconForPageURL(WKIconDatabaseRef, WKURLRef pageURL, const void* clientInfo);
- RefPtr<WebKit::WebIconDatabase> m_iconDatabase;
- Mutex m_imageLock;
+ WKIconDatabaseRef m_iconDatabase;
};
} // namespace WebKit