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

Unified Diff: Source/core/inspector/InspectorInstrumentation.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/core/inspector/InspectorInstrumentation.cpp
diff --git a/Source/core/inspector/InspectorInstrumentation.cpp b/Source/core/inspector/InspectorInstrumentation.cpp
index c70efe84a9d9022ee9f6e941a5786c0fe7993523..d05984a3b29cb7e861144978aef63589d973ecd1 100644
--- a/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/Source/core/inspector/InspectorInstrumentation.cpp
@@ -44,7 +44,7 @@
#include "core/inspector/InstrumentingAgents.h"
#include "core/inspector/WorkerInspectorController.h"
#include "core/loader/cache/CachedResourceInitiatorInfo.h"
-#include "core/workers/WorkerContext.h"
+#include "core/workers/WorkerGlobalScope.h"
namespace WebCore {
@@ -207,17 +207,17 @@ InstrumentingAgents* instrumentingAgentsForRenderObject(RenderObject* renderer)
return instrumentingAgentsForFrame(renderer->frame());
}
-InstrumentingAgents* instrumentingAgentsForWorkerContext(WorkerContext* workerContext)
+InstrumentingAgents* instrumentingAgentsForWorkerGlobalScope(WorkerGlobalScope* workerGlobalScope)
{
- if (!workerContext)
+ if (!workerGlobalScope)
return 0;
- return instrumentationForWorkerContext(workerContext);
+ return instrumentationForWorkerGlobalScope(workerGlobalScope);
}
InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ScriptExecutionContext* context)
{
- if (context->isWorkerContext())
- return instrumentationForWorkerContext(static_cast<WorkerContext*>(context));
+ if (context->isWorkerGlobalScope())
+ return instrumentationForWorkerGlobalScope(static_cast<WorkerGlobalScope*>(context));
return 0;
}
@@ -252,9 +252,9 @@ InstrumentingAgents* instrumentationForPage(Page* page)
return 0;
}
-InstrumentingAgents* instrumentationForWorkerContext(WorkerContext* workerContext)
+InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* workerGlobalScope)
{
- if (WorkerInspectorController* controller = workerContext->workerInspectorController())
+ if (WorkerInspectorController* controller = workerGlobalScope->workerInspectorController())
return controller->m_instrumentingAgents.get();
return 0;
}
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698