Chromium Code Reviews| Index: Source/bindings/v8/ScriptController.h |
| diff --git a/Source/bindings/v8/ScriptController.h b/Source/bindings/v8/ScriptController.h |
| index e4076667a027becd84500cbb37c74e2e8a3352a3..3e6bee2cc44097e565cab9fcc01f8aae0180e0a1 100644 |
| --- a/Source/bindings/v8/ScriptController.h |
| +++ b/Source/bindings/v8/ScriptController.h |
| @@ -64,6 +64,10 @@ enum ReasonForCallingCanExecuteScripts { |
| NotAboutToExecuteScript |
| }; |
| +enum InternalIsoloatedWorldIds { |
| + ScriptPreprocessorIsolatedWorldId = 10001, |
|
abarth-chromium
2013/07/09 23:14:10
Yeah, we mostly need to change this constant to (1
johnjbarton
2013/07/10 23:24:23
Done.
|
| +}; |
| + |
| class ScriptController { |
| public: |
| ScriptController(Frame*); |
| @@ -157,6 +161,13 @@ public: |
| static void registerExtensionIfNeeded(v8::Extension*); |
| static V8Extensions& registeredExtensions(); |
| + void setScriptPreprocessor(const String& preprocessorSource); |
| + bool hasScriptPreprocessor(); |
| + void clearScriptPreprocessor(); |
| + // Source to Source processing iff debugger enabled and preprocessor loaded. |
| + String preprocess(const String& scriptSource, const String& scriptName); |
| + bool isPreprocessingScript(); |
| + |
| bool setContextDebugId(int); |
| static int contextDebugId(v8::Handle<v8::Context>); |
| @@ -180,6 +191,10 @@ private: |
| typedef HashSet<NPP> PluginInstances; |
| PluginInstances m_pluginNPPs; |
| + |
| + class ScriptPreprocessor; |
| + String m_preprocessorSource; |
| + OwnPtr<ScriptPreprocessor> m_scriptPreprocessor; |
| }; |
| } // namespace WebCore |