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

Unified Diff: Source/modules/performance/WorkerPerformance.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/WorkerPerformance.cpp
diff --git a/Source/modules/performance/WorkerPerformance.cpp b/Source/modules/performance/WorkerPerformance.cpp
index 26eb115d6cd58cb2cc031ce6678dd998f9eb126d..600bfb9287620290653f1d14f636a979ab3aaafa 100644
--- a/Source/modules/performance/WorkerPerformance.cpp
+++ b/Source/modules/performance/WorkerPerformance.cpp
@@ -31,8 +31,8 @@
#include "config.h"
#include "modules/performance/WorkerPerformance.h"
-#include "core/workers/DedicatedWorkerContext.h"
-#include "core/workers/WorkerContext.h"
+#include "core/workers/DedicatedWorkerGlobalScope.h"
+#include "core/workers/WorkerGlobalScope.h"
#include "wtf/CurrentTime.h"
namespace WebCore {
@@ -50,9 +50,9 @@ double WorkerPerformance::now() const
{
ScriptExecutionContext* context = scriptExecutionContext();
ASSERT(context);
- ASSERT_WITH_SECURITY_IMPLICATION(context->isWorkerContext());
- WorkerContext* workerContext = static_cast<WorkerContext*>(context);
- return 1000.0 * (monotonicallyIncreasingTime() - workerContext->timeOrigin());
+ ASSERT_WITH_SECURITY_IMPLICATION(context->isWorkerGlobalScope());
+ WorkerGlobalScope* workerGlobalScope = static_cast<WorkerGlobalScope*>(context);
+ return 1000.0 * (monotonicallyIncreasingTime() - workerGlobalScope->timeOrigin());
}
} // namespace WebCore
« no previous file with comments | « Source/modules/performance/WorkerGlobalScopePerformance.idl ('k') | Source/modules/webdatabase/DatabaseContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698