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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: It builds => ship it. Created 4 years, 10 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: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
index 5d709e7367293085c003c595ad0c0f1b76dbdd35..6089807eb8783a99507011983a1fecdfba75b3bb 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
@@ -33,6 +33,7 @@
#include "core/CoreExport.h"
#include "gin/public/isolate_holder.h"
#include "gin/public/v8_idle_task_runner.h"
+#include "public/platform/Platform.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
@@ -48,7 +49,8 @@ struct WrapperTypeInfo;
typedef WTF::Vector<DOMDataStore*> DOMDataStoreList;
-class CORE_EXPORT V8PerIsolateData {
+class CORE_EXPORT V8PerIsolateData
+ : public Platform::TraceLogEnabledStateObserver {
USING_FAST_MALLOC(V8PerIsolateData);
WTF_MAKE_NONCOPYABLE(V8PerIsolateData);
public:
@@ -122,6 +124,10 @@ public:
void setThreadDebugger(PassOwnPtr<ThreadDebugger>);
ThreadDebugger* threadDebugger();
+ // Platform::TraceLogEnabledStateObserver methods:
+ void onTraceLogEnabled() override;
+ void onTraceLogDisabled() override;
+
private:
V8PerIsolateData();
~V8PerIsolateData();

Powered by Google App Engine
This is Rietveld 408576698