summaryrefslogtreecommitdiffstats
path: root/chromium/base/task_runner.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/task_runner.h')
-rw-r--r--chromium/base/task_runner.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/chromium/base/task_runner.h b/chromium/base/task_runner.h
index 471f23cd7bb..2bd5d4eb2bf 100644
--- a/chromium/base/task_runner.h
+++ b/chromium/base/task_runner.h
@@ -11,14 +11,11 @@
#include "base/callback.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
+#include "base/task/promise/abstract_promise.h"
#include "base/time/time.h"
namespace base {
-namespace internal {
-class AbstractPromise;
-} // namespace internal
-
struct TaskRunnerTraits;
// A TaskRunner is an object that runs posted tasks (in the form of
@@ -139,9 +136,7 @@ class BASE_EXPORT TaskRunner
// TODO(alexclarke): This should become pure virtual and replace
// PostDelayedTask. NB passing by reference to reduce binary size.
- bool PostPromiseInternal(
- const scoped_refptr<internal::AbstractPromise>& promise,
- base::TimeDelta delay);
+ bool PostPromiseInternal(WrappedPromise promise, base::TimeDelta delay);
protected:
friend struct TaskRunnerTraits;