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

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

Issue 2746333002: DevTools: move recurring flag into AsyncTask, control cancelation from embedder only. (Closed)
Patch Set: using _END now Created 3 years, 9 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.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.h b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.h
index 72803aa8826c20500ed6f96fb021325162837618..a188d56dd19c28cd076bc340541163d374ea834d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.h
@@ -63,13 +63,16 @@ class CORE_EXPORT AsyncTask {
STACK_ALLOCATED();
public:
- AsyncTask(ExecutionContext*, void* task);
- AsyncTask(ExecutionContext*, void* task, bool enabled);
+ AsyncTask(ExecutionContext*,
+ void* task,
+ const char* step = nullptr,
+ bool enabled = true);
~AsyncTask();
private:
ThreadDebugger* m_debugger;
void* m_task;
+ bool m_recurring;
};
// Called from generated instrumentation code.
@@ -112,12 +115,10 @@ inline InstrumentingAgents* instrumentingAgentsFor(EventTarget* eventTarget) {
CORE_EXPORT void asyncTaskScheduled(ExecutionContext*,
const String& name,
- void*,
- bool recurring = false);
+ void*);
CORE_EXPORT void asyncTaskScheduledBreakable(ExecutionContext*,
const char* name,
- void*,
- bool recurring = false);
+ void*);
CORE_EXPORT void asyncTaskCanceled(ExecutionContext*, void*);
CORE_EXPORT void asyncTaskCanceledBreakable(ExecutionContext*,
const char* name,

Powered by Google App Engine
This is Rietveld 408576698