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

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

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.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

Powered by Google App Engine
This is Rietveld 408576698