mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename the current CEF runtime to Alloy (see issue #2969)
As part of introducing the Chrome runtime we now need to distinguish between the classes that implement the current CEF runtime and the classes the implement the shared CEF library/runtime structure and public API. We choose the name Alloy for the current CEF runtime because it describes a combination of Chrome and other elements. Shared CEF library/runtime classes will continue to use the Cef prefix. Classes that implement the Alloy or Chrome runtime will use the Alloy or Chrome prefixes respectively. Classes that extend an existing Chrome-prefixed class will add the Cef or Alloy suffix, thereby following the existing naming pattern of Chrome-derived classes. This change applies the new naming pattern to an initial set of runtime-related classes. Additional classes/files will be renamed and moved as the Chrome runtime implementation progresses.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#define CEF_LIBCEF_RENDERER_THREAD_UTIL_H_
|
||||
#pragma once
|
||||
|
||||
#include "libcef/renderer/content_renderer_client.h"
|
||||
#include "libcef/common/task_runner_manager.h"
|
||||
|
||||
#include "base/location.h"
|
||||
#include "base/logging.h"
|
||||
@@ -28,12 +28,13 @@
|
||||
return; \
|
||||
}
|
||||
|
||||
#define CEF_RENDER_LOOP() \
|
||||
(CefContentRendererClient::Get()->render_task_runner())
|
||||
#define CEF_RENDER_TASK_RUNNER() \
|
||||
(CefTaskRunnerManager::Get()->GetRenderTaskRunner())
|
||||
|
||||
#define CEF_POST_TASK_RT(task) CEF_RENDER_LOOP()->PostTask(FROM_HERE, task)
|
||||
#define CEF_POST_TASK_RT(task) \
|
||||
CEF_RENDER_TASK_RUNNER()->PostTask(FROM_HERE, task)
|
||||
#define CEF_POST_DELAYED_TASK_RT(task, delay_ms) \
|
||||
CEF_RENDER_LOOP()->PostDelayedTask( \
|
||||
CEF_RENDER_TASK_RUNNER()->PostDelayedTask( \
|
||||
FROM_HERE, task, base::TimeDelta::FromMilliseconds(delay_ms))
|
||||
|
||||
// Use this template in conjuction with RefCountedThreadSafe when you want to
|
||||
@@ -44,7 +45,7 @@ struct CefDeleteOnRenderThread {
|
||||
if (CEF_CURRENTLY_ON_RT()) {
|
||||
delete x;
|
||||
} else {
|
||||
if (!CEF_RENDER_LOOP()->DeleteSoon(FROM_HERE, x)) {
|
||||
if (!CEF_RENDER_TASK_RUNNER()->DeleteSoon(FROM_HERE, x)) {
|
||||
#if defined(UNIT_TEST)
|
||||
// Only logged under unit testing because leaks at shutdown
|
||||
// are acceptable under normal circumstances.
|
||||
|
Reference in New Issue
Block a user