| 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 015444f4f3a868caf27b3d8a9c7eb2e913fa6488..2c65b2c3704e6be32014445922d332fe78f93425 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
|
| @@ -58,6 +58,25 @@ PersistentHeapHashSet<WeakMember<InstrumentingAgents>>& instrumentingAgentsSet()
|
| }
|
|
|
| namespace InspectorInstrumentation {
|
| +
|
| +AsyncTask::AsyncTask(ExecutionContext* context, void* task) : AsyncTask(context, task, true)
|
| +{
|
| +}
|
| +
|
| +AsyncTask::AsyncTask(ExecutionContext* context, void* task, bool enabled)
|
| + : m_instrumentingAgents(enabled ? instrumentingAgentsFor(context) : nullptr)
|
| + , m_task(task)
|
| +{
|
| + if (m_instrumentingAgents && m_instrumentingAgents->inspectorDebuggerAgent())
|
| + m_instrumentingAgents->inspectorDebuggerAgent()->asyncTaskStarted(m_task);
|
| +}
|
| +
|
| +AsyncTask::~AsyncTask()
|
| +{
|
| + if (m_instrumentingAgents && m_instrumentingAgents->inspectorDebuggerAgent())
|
| + m_instrumentingAgents->inspectorDebuggerAgent()->asyncTaskFinished(m_task);
|
| +}
|
| +
|
| int FrontendCounter::s_frontendCounter = 0;
|
|
|
| // Keep in sync with kDevToolsRequestInitiator defined in devtools_network_controller.cc
|
|
|