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

Unified Diff: third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h

Issue 2098433002: Remove ExecutionContextTask::taskNameForInstrumentation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/dom/MainThreadTaskRunner.h
diff --git a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
index 8db704eac95b7487bdc05dc8cc13701edca72508..1185416163c3f42933b59ad0fed8ac2bbbad451e 100644
--- a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
+++ b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
@@ -35,6 +35,7 @@
#include "wtf/PtrUtil.h"
#include "wtf/Vector.h"
#include "wtf/WeakPtr.h"
+#include "wtf/text/WTFString.h"
#include <memory>
namespace blink {
@@ -52,9 +53,9 @@ public:
DECLARE_TRACE();
- void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>); // Executes the task on context's thread asynchronously.
+ void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>, const String& taskNameForInstrumentation = emptyString()); // Executes the task on context's thread asynchronously.
void postInspectorTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>);
- void perform(std::unique_ptr<ExecutionContextTask>, bool);
+ void perform(std::unique_ptr<ExecutionContextTask>, bool isInspectorTask, bool instrumenting);
void suspend();
void resume();
@@ -64,13 +65,13 @@ private:
void pendingTasksTimerFired(Timer<MainThreadTaskRunner>*);
- void postTaskInternal(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>, bool isInspectorTask);
+ void postTaskInternal(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>, bool isInspectorTask, bool instrumenting);
// Untraced back reference to the owner Document;
// this object has identical lifetime to it.
UntracedMember<ExecutionContext> m_context;
Timer<MainThreadTaskRunner> m_pendingTasksTimer;
- Vector<std::unique_ptr<ExecutionContextTask>> m_pendingTasks;
+ Vector<std::pair<std::unique_ptr<ExecutionContextTask>, bool /* instrumenting */>> m_pendingTasks;
bool m_suspended;
WeakPtrFactory<MainThreadTaskRunner> m_weakFactory;
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContextTask.h ('k') | third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698