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

Unified Diff: Source/modules/performance/WorkerGlobalScopePerformance.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/performance/WorkerGlobalScopePerformance.cpp
diff --git a/Source/modules/performance/WorkerContextPerformance.cpp b/Source/modules/performance/WorkerGlobalScopePerformance.cpp
similarity index 70%
rename from Source/modules/performance/WorkerContextPerformance.cpp
rename to Source/modules/performance/WorkerGlobalScopePerformance.cpp
index 1296c555bcba8a6ed55b928e37d2f5f53384d458..381375addf6e7317395c2fc20ad1aa0cfd5a47ef 100644
--- a/Source/modules/performance/WorkerContextPerformance.cpp
+++ b/Source/modules/performance/WorkerGlobalScopePerformance.cpp
@@ -30,43 +30,43 @@
#include "config.h"
-#include "modules/performance/WorkerContextPerformance.h"
+#include "modules/performance/WorkerGlobalScopePerformance.h"
#include "core/dom/ScriptExecutionContext.h"
-#include "core/workers/WorkerContext.h"
+#include "core/workers/WorkerGlobalScope.h"
#include "modules/performance/WorkerPerformance.h"
namespace WebCore {
-WorkerContextPerformance::WorkerContextPerformance()
+WorkerGlobalScopePerformance::WorkerGlobalScopePerformance()
{
}
-WorkerContextPerformance::~WorkerContextPerformance()
+WorkerGlobalScopePerformance::~WorkerGlobalScopePerformance()
{
}
-const char* WorkerContextPerformance::supplementName()
+const char* WorkerGlobalScopePerformance::supplementName()
{
- return "WorkerContextPerformance";
+ return "WorkerGlobalScopePerformance";
}
-WorkerContextPerformance* WorkerContextPerformance::from(ScriptExecutionContext* context)
+WorkerGlobalScopePerformance* WorkerGlobalScopePerformance::from(ScriptExecutionContext* context)
{
- WorkerContextPerformance* supplement = static_cast<WorkerContextPerformance*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
+ WorkerGlobalScopePerformance* supplement = static_cast<WorkerGlobalScopePerformance*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
if (!supplement) {
- supplement = new WorkerContextPerformance();
+ supplement = new WorkerGlobalScopePerformance();
provideTo(context, supplementName(), adoptPtr(supplement));
}
return supplement;
}
-WorkerPerformance* WorkerContextPerformance::performance(ScriptExecutionContext* context)
+WorkerPerformance* WorkerGlobalScopePerformance::performance(ScriptExecutionContext* context)
{
return from(context)->getPerformance(context);
}
-WorkerPerformance* WorkerContextPerformance::getPerformance(ScriptExecutionContext* context)
+WorkerPerformance* WorkerGlobalScopePerformance::getPerformance(ScriptExecutionContext* context)
{
if (!m_performance)
m_performance = WorkerPerformance::create(context);
« no previous file with comments | « Source/modules/performance/WorkerGlobalScopePerformance.h ('k') | Source/modules/performance/WorkerGlobalScopePerformance.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698