summaryrefslogtreecommitdiffstats
path: root/WebCore/notifications/NotificationPresenter.h
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-07-15 12:03:35 +0100
committerLeon Clarke <leonclarke@google.com>2010-07-20 16:57:23 +0100
commite458d70a0d18538346f41b503114c9ebe6b2ce12 (patch)
tree86f1637deca2c524432a822e5fcedd4bef221091 /WebCore/notifications/NotificationPresenter.h
parentf43eabc081f7ce6af24b9df4953498a3cd6ca24d (diff)
downloadexternal_webkit-e458d70a0d18538346f41b503114c9ebe6b2ce12.zip
external_webkit-e458d70a0d18538346f41b503114c9ebe6b2ce12.tar.gz
external_webkit-e458d70a0d18538346f41b503114c9ebe6b2ce12.tar.bz2
Merge WebKit at r63173 : Initial merge by git.
Change-Id: Ife5af0c7c6261fbbc8ae6bc08c390efa9ef10b44
Diffstat (limited to 'WebCore/notifications/NotificationPresenter.h')
-rw-r--r--WebCore/notifications/NotificationPresenter.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/notifications/NotificationPresenter.h b/WebCore/notifications/NotificationPresenter.h
index 193eb2b..e3e7ee2 100644
--- a/WebCore/notifications/NotificationPresenter.h
+++ b/WebCore/notifications/NotificationPresenter.h
@@ -41,7 +41,7 @@ namespace WebCore {
class Document;
class Notification;
class KURL;
- class SecurityOrigin;
+ class ScriptExecutionContext;
class String;
class NotificationPresenter {
@@ -67,12 +67,15 @@ namespace WebCore {
virtual void notificationObjectDestroyed(Notification*) = 0;
// Requests user permission to show desktop notifications from a particular
- // origin. The callback parameter should be run when the user has
+ // script context. The callback parameter should be run when the user has
// made a decision.
- virtual void requestPermission(SecurityOrigin*, PassRefPtr<VoidCallback>) = 0;
+ virtual void requestPermission(ScriptExecutionContext*, PassRefPtr<VoidCallback>) = 0;
+
+ // Cancel all outstanding requests for the ScriptExecutionContext
+ virtual void cancelRequestsForPermission(ScriptExecutionContext*) = 0;
// Checks the current level of permission.
- virtual Permission checkPermission(const KURL&) = 0;
+ virtual Permission checkPermission(ScriptExecutionContext*) = 0;
};
} // namespace WebCore