Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: Source/modules/notifications/WorkerGlobalScopeNotifications.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698