mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 135.0.7049.0 (#1427262)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "cef/include/internal/cef_logging_internal.h"
|
||||
#include "cef/include/internal/cef_thread_internal.h"
|
||||
#include "cef/include/internal/cef_trace_event_internal.h"
|
||||
#include "cef/libcef/common/api_version_util.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -218,13 +219,13 @@ CEF_EXPORT void cef_log(const char* file,
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_platform_thread_id_t cef_get_current_platform_thread_id() {
|
||||
return base::PlatformThread::CurrentId();
|
||||
return base::PlatformThread::CurrentId().raw();
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_platform_thread_handle_t
|
||||
cef_get_current_platform_thread_handle() {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
return base::PlatformThread::CurrentId();
|
||||
return base::PlatformThread::CurrentId().raw();
|
||||
#else
|
||||
return base::PlatformThread::CurrentHandle().platform_handle();
|
||||
#endif
|
||||
@@ -240,5 +241,7 @@ CEF_EXPORT int cef_dump_without_crashing(long long mseconds_between_dumps,
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_dump_without_crashing_unthrottled() {
|
||||
return base::debug::DumpWithoutCrashingUnthrottled();
|
||||
CEF_API_REQUIRE_REMOVED(CEF_NEXT);
|
||||
NOTIMPLEMENTED();
|
||||
return 0;
|
||||
}
|
||||
|
@@ -62,7 +62,7 @@ bool CefCreateTempDirectoryInDirectory(const CefString& base_dir,
|
||||
base::FilePath result;
|
||||
base::FilePath::StringType prefix_str = prefix;
|
||||
if (base::CreateTemporaryDirInDir(
|
||||
base_dir, base::FilePath::StringPieceType(prefix_str), &result)) {
|
||||
base_dir, base::FilePath::StringViewType(prefix_str), &result)) {
|
||||
new_dir = result.value();
|
||||
return true;
|
||||
}
|
||||
|
@@ -114,7 +114,7 @@ bool CefThreadImpl::Create(const CefString& display_name,
|
||||
}
|
||||
|
||||
thread_task_runner_ = new CefTaskRunnerImpl(thread_->task_runner());
|
||||
thread_id_ = thread_->GetThreadId();
|
||||
thread_id_ = thread_->GetThreadId().raw();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -159,7 +159,7 @@ class CefValueControllerThreadSafe : public CefValueController {
|
||||
locked_thread_id_ = base::PlatformThread::CurrentId();
|
||||
}
|
||||
void unlock() override NO_THREAD_SAFETY_ANALYSIS {
|
||||
locked_thread_id_ = 0;
|
||||
locked_thread_id_ = base::PlatformThreadId();
|
||||
lock_.Release();
|
||||
}
|
||||
bool locked() override {
|
||||
@@ -169,7 +169,7 @@ class CefValueControllerThreadSafe : public CefValueController {
|
||||
|
||||
private:
|
||||
base::Lock lock_;
|
||||
base::PlatformThreadId locked_thread_id_ = 0;
|
||||
base::PlatformThreadId locked_thread_id_;
|
||||
};
|
||||
|
||||
// Non-thread-safe access control implementation.
|
||||
|
Reference in New Issue
Block a user