| Index: Source/bindings/v8/ScriptController.h
|
| diff --git a/Source/bindings/v8/ScriptController.h b/Source/bindings/v8/ScriptController.h
|
| index a2bd844826954e64bf0590397d050138c2836cfa..97b56d53421576edc89ef5fedd8facfc9eb23cee 100644
|
| --- a/Source/bindings/v8/ScriptController.h
|
| +++ b/Source/bindings/v8/ScriptController.h
|
| @@ -51,6 +51,8 @@ class Frame;
|
| class HTMLDocument;
|
| class HTMLPlugInElement;
|
| class KURL;
|
| +class ScriptDebugServer;
|
| +class ScriptPreprocessor;
|
| class ScriptSourceCode;
|
| class ScriptState;
|
| class SecurityOrigin;
|
| @@ -64,10 +66,6 @@ enum ReasonForCallingCanExecuteScripts {
|
| NotAboutToExecuteScript
|
| };
|
|
|
| -enum IsolatedWorldConstants {
|
| - EmbedderWorldIdLimit = (1 << 29)
|
| -};
|
| -
|
| class ScriptController {
|
| public:
|
| ScriptController(Frame*);
|
| @@ -159,6 +157,12 @@ public:
|
| static void registerExtensionIfNeeded(v8::Extension*);
|
| static V8Extensions& registeredExtensions();
|
|
|
| + void setScriptPreprocessor(const String& preprocessorSource);
|
| + void clearScriptPreprocessor();
|
| + // Source to Source processing iff debugger enabled and it has loaded a preprocessor.
|
| + String preprocess(const String& scriptSource, const String& scriptName);
|
| + void preprocessEval(ScriptDebugServer* , v8::Handle<v8::Object> eventData);
|
| +
|
| bool setContextDebugId(int);
|
| static int contextDebugId(v8::Handle<v8::Context>);
|
|
|
| @@ -184,6 +188,11 @@ private:
|
| PluginObjectMap m_pluginObjects;
|
|
|
| NPObject* m_windowScriptNPObject;
|
| +
|
| + // Set by the PageDebuggerAgent on reload
|
| + String m_preprocessorSource;
|
| + // Set on the first JS compilation after m_preprocessorSource is set.
|
| + OwnPtr<ScriptPreprocessor> m_scriptPreprocessor;
|
| };
|
|
|
| } // namespace WebCore
|
|
|