Index: Source/bindings/v8/ScriptState.h |
diff --git a/Source/bindings/v8/ScriptState.h b/Source/bindings/v8/ScriptState.h |
index 16a4a4a5ccbc16338997adda8e4a8896f34b2b53..020c08a03780d6cdda39c2f995d02c11990aefd0 100644 |
--- a/Source/bindings/v8/ScriptState.h |
+++ b/Source/bindings/v8/ScriptState.h |
@@ -35,6 +35,7 @@ |
#include "bindings/v8/V8Utilities.h" |
#include <v8.h> |
#include "wtf/Noncopyable.h" |
+#include "wtf/text/WTFString.h" |
namespace WebCore { |
@@ -70,6 +71,10 @@ public: |
bool evalEnabled() const; |
void setEvalEnabled(bool); |
+ virtual const String* name() { return 0; } |
+ // FIXME: determine a better name and use an enum of supported languages, etc. |
+ virtual bool isJavaScript() { return true; } |
+ |
static ScriptState* forContext(v8::Handle<v8::Context>); |
static ScriptState* current(); |
@@ -79,11 +84,12 @@ protected: |
{ |
} |
+ explicit ScriptState(v8::Handle<v8::Context>); |
+ |
~ScriptState(); |
vsm
2013/09/30 22:08:03
This should now be virtual.
Jacob
2013/10/01 00:07:05
Done.
|
private: |
friend ScriptState* mainWorldScriptState(Frame*); |
- explicit ScriptState(v8::Handle<v8::Context>); |
static void makeWeakCallback(v8::Isolate*, v8::Persistent<v8::Context>*, ScriptState*); |