mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 101.0.4951.0 (#982481)
Known issues: - chrome: Some ceftests are failing due to bfcache same-site enabled by default (see issue #3301)
This commit is contained in:
@@ -35,17 +35,9 @@
|
||||
|
||||
#if defined(USING_CHROMIUM_INCLUDES)
|
||||
// When building CEF include the Chromium header directly.
|
||||
// TODO(cef): Change to "base/cxx17_backports.h" in M93.
|
||||
#include "base/stl_util.h"
|
||||
#include "base/cxx17_backports.h"
|
||||
#else // !USING_CHROMIUM_INCLUDES
|
||||
// The following is substantially similar to the Chromium implementation.
|
||||
// If the Chromium implementation diverges the below implementation should be
|
||||
// updated to match.
|
||||
|
||||
#include <array>
|
||||
#include <initializer_list>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
// The following was removed from Chromium in https://crrev.com/78734f77be.
|
||||
|
||||
namespace base {
|
||||
|
||||
@@ -61,71 +53,6 @@ constexpr size_t size(const T (&array)[N]) noexcept {
|
||||
return N;
|
||||
}
|
||||
|
||||
// C++14 implementation of C++17's std::empty():
|
||||
// http://en.cppreference.com/w/cpp/iterator/empty
|
||||
template <typename Container>
|
||||
constexpr auto empty(const Container& c) -> decltype(c.empty()) {
|
||||
return c.empty();
|
||||
}
|
||||
|
||||
template <typename T, size_t N>
|
||||
constexpr bool empty(const T (&array)[N]) noexcept {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr bool empty(std::initializer_list<T> il) noexcept {
|
||||
return il.size() == 0;
|
||||
}
|
||||
|
||||
// C++14 implementation of C++17's std::data():
|
||||
// http://en.cppreference.com/w/cpp/iterator/data
|
||||
template <typename Container>
|
||||
constexpr auto data(Container& c) -> decltype(c.data()) {
|
||||
return c.data();
|
||||
}
|
||||
|
||||
// std::basic_string::data() had no mutable overload prior to C++17 [1].
|
||||
// Hence this overload is provided.
|
||||
// Note: str[0] is safe even for empty strings, as they are guaranteed to be
|
||||
// null-terminated [2].
|
||||
//
|
||||
// [1] http://en.cppreference.com/w/cpp/string/basic_string/data
|
||||
// [2] http://en.cppreference.com/w/cpp/string/basic_string/operator_at
|
||||
template <typename CharT, typename Traits, typename Allocator>
|
||||
CharT* data(std::basic_string<CharT, Traits, Allocator>& str) {
|
||||
return std::addressof(str[0]);
|
||||
}
|
||||
|
||||
template <typename Container>
|
||||
constexpr auto data(const Container& c) -> decltype(c.data()) {
|
||||
return c.data();
|
||||
}
|
||||
|
||||
template <typename T, size_t N>
|
||||
constexpr T* data(T (&array)[N]) noexcept {
|
||||
return array;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr const T* data(std::initializer_list<T> il) noexcept {
|
||||
return il.begin();
|
||||
}
|
||||
|
||||
// std::array::data() was not constexpr prior to C++17 [1].
|
||||
// Hence these overloads are provided.
|
||||
//
|
||||
// [1] https://en.cppreference.com/w/cpp/container/array/data
|
||||
template <typename T, size_t N>
|
||||
constexpr T* data(std::array<T, N>& array) noexcept {
|
||||
return !array.empty() ? &array[0] : nullptr;
|
||||
}
|
||||
|
||||
template <typename T, size_t N>
|
||||
constexpr const T* data(const std::array<T, N>& array) noexcept {
|
||||
return !array.empty() ? &array[0] : nullptr;
|
||||
}
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // !USING_CHROMIUM_INCLUDES
|
||||
|
@@ -42,13 +42,13 @@
|
||||
// way that may cause binary incompatibility with other builds. The universal
|
||||
// hash value will change if any platform is affected whereas the platform hash
|
||||
// values will change only if that particular platform is affected.
|
||||
#define CEF_API_HASH_UNIVERSAL "b48260d601003581ec2c9e73c929334503fcde08"
|
||||
#define CEF_API_HASH_UNIVERSAL "34a42688778747c68f31e0194fea8323bc5388dc"
|
||||
#if defined(OS_WIN)
|
||||
#define CEF_API_HASH_PLATFORM "e65308c28b7ee4ac8f381ae05ab8a7032530c802"
|
||||
#define CEF_API_HASH_PLATFORM "c78306ad4768dc6c4ca1c376fa4c3799db8fd0eb"
|
||||
#elif defined(OS_MAC)
|
||||
#define CEF_API_HASH_PLATFORM "969a1ae6e43f5b11a67a38a54ce2fc885a1f234d"
|
||||
#define CEF_API_HASH_PLATFORM "c25d8bb5b7118a8f50c84e8a2746b2a14d7193ef"
|
||||
#elif defined(OS_LINUX)
|
||||
#define CEF_API_HASH_PLATFORM "a4814c14fa26251da02fd92ebbb3db8f07646110"
|
||||
#define CEF_API_HASH_PLATFORM "742fc8a47e757e34a87c7c814fc884591d5e9f98"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@@ -1199,6 +1199,12 @@ typedef enum {
|
||||
///
|
||||
TT_EXPLICIT = 1,
|
||||
|
||||
///
|
||||
// User got to this page through a suggestion in the UI (for example, via the
|
||||
// destinations page). Chrome runtime only.
|
||||
///
|
||||
TT_AUTO_BOOKMARK = 2,
|
||||
|
||||
///
|
||||
// Source is a subframe navigation. This is any content that is automatically
|
||||
// loaded in a non-toplevel frame. For example, if a page consists of several
|
||||
@@ -1217,6 +1223,25 @@ typedef enum {
|
||||
///
|
||||
TT_MANUAL_SUBFRAME = 4,
|
||||
|
||||
///
|
||||
// User got to this page by typing in the URL bar and selecting an entry
|
||||
// that did not look like a URL. For example, a match might have the URL
|
||||
// of a Google search result page, but appear like "Search Google for ...".
|
||||
// These are not quite the same as EXPLICIT navigations because the user
|
||||
// didn't type or see the destination URL. Chrome runtime only.
|
||||
// See also TT_KEYWORD.
|
||||
///
|
||||
TT_GENERATED = 5,
|
||||
|
||||
///
|
||||
// This is a toplevel navigation. This is any content that is automatically
|
||||
// loaded in a toplevel frame. For example, opening a tab to show the ASH
|
||||
// screen saver, opening the devtools window, opening the NTP after the safe
|
||||
// browsing warning, opening web-based dialog boxes are examples of
|
||||
// AUTO_TOPLEVEL navigations. Chrome runtime only.
|
||||
///
|
||||
TT_AUTO_TOPLEVEL = 6,
|
||||
|
||||
///
|
||||
// Source is a form submission by the user. NOTE: In some situations
|
||||
// submitting a form does not result in this transition type. This can happen
|
||||
@@ -1231,6 +1256,25 @@ typedef enum {
|
||||
///
|
||||
TT_RELOAD = 8,
|
||||
|
||||
///
|
||||
// The url was generated from a replaceable keyword other than the default
|
||||
// search provider. If the user types a keyword (which also applies to
|
||||
// tab-to-search) in the omnibox this qualifier is applied to the transition
|
||||
// type of the generated url. TemplateURLModel then may generate an
|
||||
// additional visit with a transition type of TT_KEYWORD_GENERATED against the
|
||||
// url 'http://' + keyword. For example, if you do a tab-to-search against
|
||||
// wikipedia the generated url has a transition qualifer of TT_KEYWORD, and
|
||||
// TemplateURLModel generates a visit for 'wikipedia.org' with a transition
|
||||
// type of TT_KEYWORD_GENERATED. Chrome runtime only.
|
||||
///
|
||||
TT_KEYWORD = 9,
|
||||
|
||||
///
|
||||
// Corresponds to a visit generated for a keyword. See description of
|
||||
// TT_KEYWORD for more details. Chrome runtime only.
|
||||
///
|
||||
TT_KEYWORD_GENERATED = 10,
|
||||
|
||||
///
|
||||
// General mask defining the bits used for the source values.
|
||||
///
|
||||
@@ -1256,6 +1300,18 @@ typedef enum {
|
||||
///
|
||||
TT_DIRECT_LOAD_FLAG = 0x02000000,
|
||||
|
||||
///
|
||||
// User is navigating to the home page. Chrome runtime only.
|
||||
///
|
||||
TT_HOME_PAGE_FLAG = 0x04000000,
|
||||
|
||||
///
|
||||
// The transition originated from an external application; the exact
|
||||
// definition of this is embedder dependent. Chrome runtime and
|
||||
// extension system only.
|
||||
///
|
||||
TT_FROM_API_FLAG = 0x08000000,
|
||||
|
||||
///
|
||||
// The beginning of a navigation chain.
|
||||
///
|
||||
|
Reference in New Issue
Block a user