| Index: Source/modules/notifications/WorkerGlobalScopeNotifications.h
|
| diff --git a/Source/modules/notifications/WorkerContextNotifications.h b/Source/modules/notifications/WorkerGlobalScopeNotifications.h
|
| similarity index 77%
|
| rename from Source/modules/notifications/WorkerContextNotifications.h
|
| rename to Source/modules/notifications/WorkerGlobalScopeNotifications.h
|
| index f891f345588135ab81a5b6f6bd349f51e2c1b311..7b169f4a33661c687ace13e826cfba04d57cf84c 100644
|
| --- a/Source/modules/notifications/WorkerContextNotifications.h
|
| +++ b/Source/modules/notifications/WorkerGlobalScopeNotifications.h
|
| @@ -24,8 +24,8 @@
|
| *
|
| */
|
|
|
| -#ifndef WorkerContextNotifications_h
|
| -#define WorkerContextNotifications_h
|
| +#ifndef WorkerGlobalScopeNotifications_h
|
| +#define WorkerGlobalScopeNotifications_h
|
|
|
| #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
|
|
|
| @@ -35,22 +35,22 @@ namespace WebCore {
|
|
|
| class NotificationCenter;
|
| class ScriptExecutionContext;
|
| -class WorkerContext;
|
| +class WorkerGlobalScope;
|
|
|
| -class WorkerContextNotifications : public Supplement<ScriptExecutionContext> {
|
| +class WorkerGlobalScopeNotifications : public Supplement<ScriptExecutionContext> {
|
| public:
|
| - virtual ~WorkerContextNotifications();
|
| + virtual ~WorkerGlobalScopeNotifications();
|
|
|
| - static NotificationCenter* webkitNotifications(WorkerContext*);
|
| - static WorkerContextNotifications* from(WorkerContext*);
|
| + static NotificationCenter* webkitNotifications(WorkerGlobalScope*);
|
| + static WorkerGlobalScopeNotifications* from(WorkerGlobalScope*);
|
|
|
| private:
|
| - explicit WorkerContextNotifications(WorkerContext*);
|
| + explicit WorkerGlobalScopeNotifications(WorkerGlobalScope*);
|
|
|
| NotificationCenter* webkitNotifications();
|
| static const char* supplementName();
|
|
|
| - WorkerContext* m_context;
|
| + WorkerGlobalScope* m_context;
|
| RefPtr<NotificationCenter> m_notificationCenter;
|
| };
|
|
|
| @@ -58,4 +58,4 @@ private:
|
|
|
| #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
|
|
|
| -#endif // WorkerContextNotifications_h
|
| +#endif // WorkerGlobalScopeNotifications_h
|
|
|