Index: Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
diff --git a/Source/modules/notifications/WorkerContextNotifications.cpp b/Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
similarity index 68% |
rename from Source/modules/notifications/WorkerContextNotifications.cpp |
rename to Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
index c6e11760223ef67bbee1fc6b5b6bbd3a4d858f36..074fde595a3619f990b69e2d4e7882e3768d9429 100644 |
--- a/Source/modules/notifications/WorkerContextNotifications.cpp |
+++ b/Source/modules/notifications/WorkerGlobalScopeNotifications.cpp |
@@ -26,46 +26,46 @@ |
*/ |
#include "config.h" |
-#include "modules/notifications/WorkerContextNotifications.h" |
+#include "modules/notifications/WorkerGlobalScopeNotifications.h" |
#if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) |
-#include "core/workers/WorkerContext.h" |
+#include "core/workers/WorkerGlobalScope.h" |
#include "core/workers/WorkerThread.h" |
#include "modules/notifications/NotificationCenter.h" |
namespace WebCore { |
-WorkerContextNotifications::WorkerContextNotifications(WorkerContext* context) |
+WorkerGlobalScopeNotifications::WorkerGlobalScopeNotifications(WorkerGlobalScope* context) |
: m_context(context) |
{ |
} |
-WorkerContextNotifications::~WorkerContextNotifications() |
+WorkerGlobalScopeNotifications::~WorkerGlobalScopeNotifications() |
{ |
} |
-const char* WorkerContextNotifications::supplementName() |
+const char* WorkerGlobalScopeNotifications::supplementName() |
{ |
- return "WorkerContextNotifications"; |
+ return "WorkerGlobalScopeNotifications"; |
} |
-WorkerContextNotifications* WorkerContextNotifications::from(WorkerContext* context) |
+WorkerGlobalScopeNotifications* WorkerGlobalScopeNotifications::from(WorkerGlobalScope* context) |
{ |
- WorkerContextNotifications* supplement = static_cast<WorkerContextNotifications*>(Supplement<ScriptExecutionContext>::from(context, supplementName())); |
+ WorkerGlobalScopeNotifications* supplement = static_cast<WorkerGlobalScopeNotifications*>(Supplement<ScriptExecutionContext>::from(context, supplementName())); |
if (!supplement) { |
- supplement = new WorkerContextNotifications(context); |
+ supplement = new WorkerGlobalScopeNotifications(context); |
Supplement<ScriptExecutionContext>::provideTo(context, supplementName(), adoptPtr(supplement)); |
} |
return supplement; |
} |
-NotificationCenter* WorkerContextNotifications::webkitNotifications(WorkerContext* context) |
+NotificationCenter* WorkerGlobalScopeNotifications::webkitNotifications(WorkerGlobalScope* context) |
{ |
- return WorkerContextNotifications::from(context)->webkitNotifications(); |
+ return WorkerGlobalScopeNotifications::from(context)->webkitNotifications(); |
} |
-NotificationCenter* WorkerContextNotifications::webkitNotifications() |
+NotificationCenter* WorkerGlobalScopeNotifications::webkitNotifications() |
{ |
if (!m_notificationCenter) |
m_notificationCenter = NotificationCenter::create(m_context, m_context->thread()->getNotificationClient()); |