| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TASK_H_ | |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_TASK_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "third_party/WebKit/public/platform/WebTaskRunner.h" | |
| 11 | |
| 12 namespace test_runner { | |
| 13 | |
| 14 // blink::WebTaskRunner::Task that wraps a base::Closure. | |
| 15 class WebCallbackTask : public blink::WebTaskRunner::Task { | |
| 16 public: | |
| 17 WebCallbackTask(const base::Closure& callback); | |
| 18 ~WebCallbackTask() override; | |
| 19 | |
| 20 void run() override; | |
| 21 | |
| 22 private: | |
| 23 base::Closure callback_; | |
| 24 | |
| 25 DISALLOW_COPY_AND_ASSIGN(WebCallbackTask); | |
| 26 }; | |
| 27 | |
| 28 } // namespace test_runner | |
| 29 | |
| 30 #endif // COMPONENTS_TEST_RUNNER_WEB_TASK_H_ | |
| OLD | NEW |