Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: Source/bindings/v8/ScriptState.h

Issue 257803006: Fixing wrong extension ID in Activity Log entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ActivityLogger moved to ScriptState Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698