mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 103.0.5060.0 (#1002911)
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
|
||||
#include "base/location.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/task/post_task.h"
|
||||
#include "base/task/thread_pool.h"
|
||||
#include "base/threading/scoped_blocking_call.h"
|
||||
#include "base/threading/thread_restrictions.h"
|
||||
@@ -42,9 +41,19 @@
|
||||
#define CEF_REQUIRE_UIT_RETURN_VOID() CEF_REQUIRE_RETURN_VOID(CEF_UIT)
|
||||
#define CEF_REQUIRE_IOT_RETURN_VOID() CEF_REQUIRE_RETURN_VOID(CEF_IOT)
|
||||
|
||||
#define CEF_POST_TASK(id, task) base::PostTask(FROM_HERE, {id}, task)
|
||||
#define CEF_POST_DELAYED_TASK(id, task, delay_ms) \
|
||||
base::PostDelayedTask(FROM_HERE, {id}, task, base::Milliseconds(delay_ms))
|
||||
template <int id, std::enable_if_t<id == CEF_UIT, bool> = true>
|
||||
auto CEF_TASK_RUNNER() {
|
||||
return content::GetUIThreadTaskRunner({});
|
||||
}
|
||||
template <int id, std::enable_if_t<id == CEF_IOT, bool> = true>
|
||||
auto CEF_TASK_RUNNER() {
|
||||
return content::GetIOThreadTaskRunner({});
|
||||
}
|
||||
|
||||
#define CEF_POST_TASK(id, task) CEF_TASK_RUNNER<id>()->PostTask(FROM_HERE, task)
|
||||
#define CEF_POST_DELAYED_TASK(id, task, delay_ms) \
|
||||
CEF_TASK_RUNNER<id>()->PostDelayedTask(FROM_HERE, task, \
|
||||
base::Milliseconds(delay_ms))
|
||||
|
||||
// Post a blocking task with the specified |priority|. Tasks that have not
|
||||
// started executing at shutdown will never run. However, any task that has
|
||||
|
Reference in New Issue
Block a user