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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp

Issue 1857713004: DevTools: simplify the async instrumentation harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/core/inspector/InspectorInstrumentation.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
index 4b950966f13c502053b754eae11677e9b79969d6..8a523731f62142f6c0f22991e2604f651d2a2331 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
@@ -58,6 +58,17 @@ PersistentHeapHashSet<WeakMember<InstrumentingAgents>>& instrumentingAgentsSet()
}
namespace InspectorInstrumentation {
+
+AsyncTask::AsyncTask(ExecutionContext* context, void* task) : m_context(context), m_task(task)
+{
+ InspectorInstrumentation::asyncTaskStarted(context, task);
+}
+
+AsyncTask::~AsyncTask()
+{
+ InspectorInstrumentation::asyncTaskFinished(m_context, m_task);
+}
+
int FrontendCounter::s_frontendCounter = 0;
}

Powered by Google App Engine
This is Rietveld 408576698