diff options
Diffstat (limited to 'WebCore/dom/ScriptExecutionContext.h')
| -rw-r--r-- | WebCore/dom/ScriptExecutionContext.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/WebCore/dom/ScriptExecutionContext.h b/WebCore/dom/ScriptExecutionContext.h index 3f8febc..cf332c3 100644 --- a/WebCore/dom/ScriptExecutionContext.h +++ b/WebCore/dom/ScriptExecutionContext.h @@ -31,6 +31,7 @@ #include "KURL.h" #include <wtf/HashMap.h> #include <wtf/HashSet.h> +#include <wtf/PassOwnPtr.h> #include <wtf/PassRefPtr.h> #include <wtf/Threading.h> @@ -44,7 +45,9 @@ namespace WebCore { class String; enum MessageDestination { +#if ENABLE(INSPECTOR) InspectorControllerDestination, +#endif ConsoleDestination, }; @@ -90,18 +93,22 @@ namespace WebCore { void ref() { refScriptExecutionContext(); } void deref() { derefScriptExecutionContext(); } - class Task : public ThreadSafeShared<Task> { + class Task : public Noncopyable { public: virtual ~Task(); virtual void performTask(ScriptExecutionContext*) = 0; }; - virtual void postTask(PassRefPtr<Task>) = 0; // Executes the task on context's thread asynchronously. + virtual void postTask(PassOwnPtr<Task>) = 0; // Executes the task on context's thread asynchronously. void addTimeout(int timeoutId, DOMTimer*); void removeTimeout(int timeoutId); DOMTimer* findTimeout(int timeoutId); +#if USE(JSC) + JSC::JSGlobalData* globalData(); +#endif + protected: // Explicitly override the security origin for this script context. // Note: It is dangerous to change the security origin of a script context |
