1 // Copyright 2015 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.
6 #include "public/platform/WebTaskRunner.h"
8 #include "platform/Task.h"
12 void WebTaskRunner::postTask(const WebTraceLocation
& location
, PassOwnPtr
<ClosureTask
> task
)
14 postTask(location
, new blink::Task(task
));
17 void WebTaskRunner::postDelayedTask(const WebTraceLocation
& location
, PassOwnPtr
<ClosureTask
> task
, long long delayMs
)
19 postDelayedTask(location
, new blink::Task(task
), delayMs
);
22 void WebTaskRunner::postDelayedTask(const WebTraceLocation
& location
, PassOwnPtr
<ClosureTask
> task
, double delayMs
)
24 postDelayedTask(location
, new blink::Task(task
), delayMs
);