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

Side by Side Diff: Source/bindings/v8/ScriptState.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/ScriptProfiler.h ('k') | Source/bindings/v8/ScriptState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "bindings/v8/V8Utilities.h" 35 #include "bindings/v8/V8Utilities.h"
36 #include <v8.h> 36 #include <v8.h>
37 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class DOMWindow; 41 class DOMWindow;
42 class DOMWrapperWorld; 42 class DOMWrapperWorld;
43 class Frame; 43 class Frame;
44 class ScriptExecutionContext; 44 class ScriptExecutionContext;
45 class WorkerContext; 45 class WorkerGlobalScope;
46 46
47 class ScriptState { 47 class ScriptState {
48 WTF_MAKE_NONCOPYABLE(ScriptState); 48 WTF_MAKE_NONCOPYABLE(ScriptState);
49 public: 49 public:
50 bool hadException() { return !m_exception.isEmpty(); } 50 bool hadException() { return !m_exception.isEmpty(); }
51 void setException(v8::Local<v8::Value> exception) 51 void setException(v8::Local<v8::Value> exception)
52 { 52 {
53 m_exception.set(m_isolate, exception); 53 m_exception.set(m_isolate, exception);
54 } 54 }
55 v8::Local<v8::Value> exception() { return m_exception.newLocal(m_isolate); } 55 v8::Local<v8::Value> exception() { return m_exception.newLocal(m_isolate); }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 ScriptState* get() const { return m_scriptState; } 117 ScriptState* get() const { return m_scriptState; }
118 118
119 private: 119 private:
120 ScriptState* m_scriptState; 120 ScriptState* m_scriptState;
121 ScopedPersistent<v8::Context> m_context; 121 ScopedPersistent<v8::Context> m_context;
122 }; 122 };
123 123
124 ScriptState* mainWorldScriptState(Frame*); 124 ScriptState* mainWorldScriptState(Frame*);
125 125
126 ScriptState* scriptStateFromWorkerContext(WorkerContext*); 126 ScriptState* scriptStateFromWorkerGlobalScope(WorkerGlobalScope*);
127 127
128 } 128 }
129 129
130 #endif // ScriptState_h 130 #endif // ScriptState_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptProfiler.h ('k') | Source/bindings/v8/ScriptState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698