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

Unified Diff: Source/bindings/v8/WorkerScriptController.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/bindings/v8/WorkerScriptController.h
diff --git a/Source/bindings/v8/WorkerScriptController.h b/Source/bindings/v8/WorkerScriptController.h
index 051c3e556c947d5d6538fe52819ff2c6a750adcb..0ec68592bc3b6c4877bda80f973d54d82eafebdb 100644
--- a/Source/bindings/v8/WorkerScriptController.h
+++ b/Source/bindings/v8/WorkerScriptController.h
@@ -42,10 +42,10 @@ namespace WebCore {
class ScriptSourceCode;
class ScriptValue;
- class WorkerContext;
+ class WorkerGlobalScope;
- struct WorkerContextExecutionState {
- WorkerContextExecutionState()
+ struct WorkerGlobalScopeExecutionState {
+ WorkerGlobalScopeExecutionState()
: hadException(false)
, lineNumber(0)
{
@@ -60,10 +60,10 @@ namespace WebCore {
class WorkerScriptController {
public:
- WorkerScriptController(WorkerContext*);
+ WorkerScriptController(WorkerGlobalScope*);
~WorkerScriptController();
- WorkerContext* workerContext() { return m_workerContext; }
+ WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope; }
void evaluate(const ScriptSourceCode&, ScriptValue* = 0);
@@ -88,7 +88,7 @@ namespace WebCore {
static WorkerScriptController* controllerForContext();
// Evaluate a script file in the current execution environment.
- ScriptValue evaluate(const String& script, const String& fileName, const TextPosition& scriptStartPosition, WorkerContextExecutionState*);
+ ScriptValue evaluate(const String& script, const String& fileName, const TextPosition& scriptStartPosition, WorkerGlobalScopeExecutionState*);
// Returns a local handle of the context.
v8::Local<v8::Context> context() { return m_context.newLocal(v8::Isolate::GetCurrent()); }
@@ -103,7 +103,7 @@ namespace WebCore {
bool initializeContextIfNeeded();
void disposeContext();
- WorkerContext* m_workerContext;
+ WorkerGlobalScope* m_workerGlobalScope;
v8::Isolate* m_isolate;
ScopedPersistent<v8::Context> m_context;
OwnPtr<V8PerContextData> m_perContextData;
« no previous file with comments | « Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp ('k') | Source/bindings/v8/WorkerScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698