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

Unified Diff: third_party/WebKit/public/platform/WebThread.h

Issue 2259013003: Move and rename TaskTimeTracker to public interface exposed to WebThread, use in WebPerf Agent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move TaskTimeTracker to public interface, expose to WebThread. Created 4 years, 4 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/public/platform/WebThread.h
diff --git a/third_party/WebKit/public/platform/WebThread.h b/third_party/WebKit/public/platform/WebThread.h
index c9a45b6f57ed9ab753eaf8769be1054f4526a3ff..2ef0627496000bb7e1e6abae6664af8410ca71f2 100644
--- a/third_party/WebKit/public/platform/WebThread.h
+++ b/third_party/WebKit/public/platform/WebThread.h
@@ -26,6 +26,8 @@
#define WebThread_h
#include "WebCommon.h"
+#include "public/platform/scheduler/base/task_time_tracker.h"
Sami 2016/08/23 10:34:59 nit: Could forward declare this instead.
panickercorp 2016/08/23 17:43:31 Done.
+
#include <stdint.h>
namespace blink {
@@ -66,6 +68,9 @@ public:
virtual void addTaskObserver(TaskObserver*) { }
Sami 2016/08/23 10:34:59 Could you add a comment here saying that both the
panickercorp 2016/08/23 17:43:31 How is this?
virtual void removeTaskObserver(TaskObserver*) { }
+ virtual void addTaskTimeTracker(scheduler::TaskTimeTracker*) {}
+ virtual void removeTaskTimeTracker(scheduler::TaskTimeTracker*) {}
+
// Returns the scheduler associated with the thread.
virtual WebScheduler* scheduler() const = 0;

Powered by Google App Engine
This is Rietveld 408576698