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

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: 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..270031b3cb729ee6988333c055077d6af7828a20 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.h
@@ -63,13 +63,15 @@ 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);
~AsyncTask();
+ void setEnabled(bool);
+
private:
ThreadDebugger* m_debugger;
void* m_task;
+ bool m_recurring;
};
// Called from generated instrumentation code.
@@ -112,12 +114,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