| Index: Source/bindings/v8/ScriptState.h
|
| diff --git a/Source/bindings/v8/ScriptState.h b/Source/bindings/v8/ScriptState.h
|
| index a5ce0504043138f8cf40a9698838fb1d5e03814b..0a6b37fd8371a6d17fdc7f9060ce6cfbbe20e83c 100644
|
| --- a/Source/bindings/v8/ScriptState.h
|
| +++ b/Source/bindings/v8/ScriptState.h
|
| @@ -16,6 +16,7 @@ class DOMWindow;
|
| class DOMWrapperWorld;
|
| class ExecutionContext;
|
| class LocalFrame;
|
| +class V8DOMActivityLogger;
|
|
|
| // ScriptState is created when v8::Context is created.
|
| // ScriptState is destroyed when v8::Context is garbage-collected and
|
| @@ -81,6 +82,9 @@ public:
|
| bool evalEnabled() const;
|
| void setEvalEnabled(bool);
|
|
|
| + V8DOMActivityLogger* activityLogger() const { return m_activityLogger; }
|
| + void setActivityLogger(V8DOMActivityLogger* activityLogger) { m_activityLogger = activityLogger; }
|
| +
|
| private:
|
| ScriptState(v8::Handle<v8::Context>, PassRefPtr<DOMWrapperWorld>);
|
|
|
| @@ -96,6 +100,8 @@ private:
|
| // So you must explicitly clear the OwnPtr by calling disposePerContextData()
|
| // once you no longer need V8PerContextData. Otherwise, the v8::Context will leak.
|
| OwnPtr<V8PerContextData> m_perContextData;
|
| + // This is owned by a static hash map in V8DOMActivityLogger.
|
| + V8DOMActivityLogger* m_activityLogger;
|
| };
|
|
|
| // ScriptStateProtectingContext keeps the context associated with the ScriptState alive.
|
|
|