| 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);
|
|
|