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

Unified Diff: components/test_runner/web_task.h

Issue 1805753002: Make test_runner::WebTask an internal detail of components/test_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-layout-dump-flags-dep
Patch Set: Created 4 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: components/test_runner/web_task.h
diff --git a/components/test_runner/web_task.h b/components/test_runner/web_task.h
index 6261405f1023d5ba579d64f2c1d06cb07941d920..3fb4d2d4304b9640287906a4d9f4ccc6b2585fc6 100644
--- a/components/test_runner/web_task.h
+++ b/components/test_runner/web_task.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/macros.h"
+#include "third_party/WebKit/public/platform/WebTaskRunner.h"
namespace test_runner {
@@ -15,15 +16,15 @@ class WebTaskList;
// WebTask represents a task which can run by WebTestDelegate::postTask() or
// WebTestDelegate::postDelayedTask().
-class WebTask {
+class WebTask : public blink::WebTaskRunner::Task {
public:
explicit WebTask(WebTaskList*);
- virtual ~WebTask();
+ ~WebTask() override;
// The main code of this task.
// An implementation of run() should return immediately if cancel() was
// called.
- virtual void run() = 0;
+ void run() override = 0;
virtual void cancel() = 0;
protected:

Powered by Google App Engine
This is Rietveld 408576698