summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h')
-rw-r--r--Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h b/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
index 591df5b1d..edca5ccf8 100644
--- a/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
+++ b/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
@@ -32,26 +32,24 @@
#include "WebNotificationProvider.h"
#include <WebCore/NotificationClient.h>
#include <wtf/HashMap.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassRefPtr.h>
#include <wtf/text/StringHash.h>
namespace API {
class Array;
+class SecurityOrigin;
}
namespace WebKit {
-class WebContext;
class WebPageProxy;
-class WebSecurityOrigin;
+class WebProcessPool;
class WebNotificationManagerProxy : public API::ObjectImpl<API::Object::Type::NotificationManager>, public WebContextSupplement {
public:
static const char* supplementName();
- static PassRefPtr<WebNotificationManagerProxy> create(WebContext*);
+ static Ref<WebNotificationManagerProxy> create(WebProcessPool*);
void initializeProvider(const WKNotificationProviderBase*);
void populateCopyOfNotificationPermissions(HashMap<String, bool>&);
@@ -65,22 +63,24 @@ public:
void providerDidShowNotification(uint64_t notificationID);
void providerDidClickNotification(uint64_t notificationID);
void providerDidCloseNotifications(API::Array* notificationIDs);
- void providerDidUpdateNotificationPolicy(const WebSecurityOrigin*, bool allowed);
+ void providerDidUpdateNotificationPolicy(const API::SecurityOrigin*, bool allowed);
void providerDidRemoveNotificationPolicies(API::Array* origins);
+ uint64_t notificationLocalIDForTesting(WebNotification*);
+
using API::Object::ref;
using API::Object::deref;
private:
- explicit WebNotificationManagerProxy(WebContext*);
+ explicit WebNotificationManagerProxy(WebProcessPool*);
typedef bool (*NotificationFilterFunction)(uint64_t pageID, uint64_t pageNotificationID, uint64_t desiredPageID, const Vector<uint64_t>& desiredPageNotificationIDs);
void clearNotifications(WebPageProxy*, const Vector<uint64_t>& pageNotificationIDs, NotificationFilterFunction);
// WebContextSupplement
- virtual void contextDestroyed() override;
- virtual void refWebContextSupplement() override;
- virtual void derefWebContextSupplement() override;
+ void processPoolDestroyed() override;
+ void refWebContextSupplement() override;
+ void derefWebContextSupplement() override;
WebNotificationProvider m_provider;
// Pair comprised of web page ID and the web process's notification ID