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

Side by Side Diff: components/test_runner/web_task.h

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: remove WebTaskRunner::postTask(base::Closure). git cl format Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner_for_specific_view.cc ('k') | components/test_runner/web_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698