| Index: third_party/WebKit/WebCore/dom/ScriptExecutionContext.h
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/dom/ScriptExecutionContext.h (revision 9118)
|
| +++ third_party/WebKit/WebCore/dom/ScriptExecutionContext.h (working copy)
|
| @@ -37,6 +37,7 @@
|
| namespace WebCore {
|
|
|
| class ActiveDOMObject;
|
| + class DOMTimer;
|
| class MessagePort;
|
| class SecurityOrigin;
|
| class ScriptString;
|
| @@ -94,6 +95,10 @@
|
|
|
| virtual void postTask(PassRefPtr<Task>) = 0; // Executes the task on context's thread asynchronously.
|
|
|
| + void addTimeout(int timeoutId, DOMTimer*);
|
| + void removeTimeout(int timeoutId);
|
| + DOMTimer* findTimeout(int timeoutId);
|
| +
|
| protected:
|
| // Explicitly override the security origin for this script context.
|
| // Note: It is dangerous to change the security origin of a script context
|
| @@ -110,6 +115,8 @@
|
|
|
| HashMap<ActiveDOMObject*, void*> m_activeDOMObjects;
|
|
|
| + HashMap<int, DOMTimer*> m_timeouts;
|
| +
|
| virtual void refScriptExecutionContext() = 0;
|
| virtual void derefScriptExecutionContext() = 0;
|
| };
|
|
|