summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
diff options
context:
space:
mode:
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