mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename namespace to "cef_internal" for base types
This fixes duplicate symbol errors when building CEF sample applications as part of the Chromium build. These applications pick up a link-time dependency on base.lib via the //sandbox and/or //testing/gtest targets which then conflict with the symbols provided by the libcef_dll_wrapper target.
This commit is contained in:
@ -97,7 +97,7 @@ struct BindUnwrapTraits;
|
||||
template <typename Functor, typename BoundArgsTuple, typename SFINAE = void>
|
||||
struct CallbackCancellationTraits;
|
||||
|
||||
namespace internal {
|
||||
namespace cef_internal {
|
||||
|
||||
template <typename Functor, typename SFINAE = void>
|
||||
struct FunctorTraits;
|
||||
@ -1259,7 +1259,7 @@ decltype(auto) BindImpl(Functor&& functor, Args&&... args) {
|
||||
std::forward<Functor>(functor), std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
} // namespace internal
|
||||
} // namespace cef_internal
|
||||
|
||||
// An injection point to control |this| pointer behavior on a method invocation.
|
||||
// If IsWeakReceiver<> is true_type for |T| and |T| is used for a receiver of a
|
||||
@ -1303,30 +1303,30 @@ struct BindUnwrapTraits {
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct BindUnwrapTraits<internal::UnretainedWrapper<T>> {
|
||||
static T* Unwrap(const internal::UnretainedWrapper<T>& o) { return o.get(); }
|
||||
struct BindUnwrapTraits<cef_internal::UnretainedWrapper<T>> {
|
||||
static T* Unwrap(const cef_internal::UnretainedWrapper<T>& o) { return o.get(); }
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct BindUnwrapTraits<internal::RetainedRefWrapper<T>> {
|
||||
static T* Unwrap(const internal::RetainedRefWrapper<T>& o) { return o.get(); }
|
||||
struct BindUnwrapTraits<cef_internal::RetainedRefWrapper<T>> {
|
||||
static T* Unwrap(const cef_internal::RetainedRefWrapper<T>& o) { return o.get(); }
|
||||
};
|
||||
|
||||
template <typename T, typename Deleter>
|
||||
struct BindUnwrapTraits<internal::OwnedWrapper<T, Deleter>> {
|
||||
static T* Unwrap(const internal::OwnedWrapper<T, Deleter>& o) {
|
||||
struct BindUnwrapTraits<cef_internal::OwnedWrapper<T, Deleter>> {
|
||||
static T* Unwrap(const cef_internal::OwnedWrapper<T, Deleter>& o) {
|
||||
return o.get();
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct BindUnwrapTraits<internal::OwnedRefWrapper<T>> {
|
||||
static T& Unwrap(const internal::OwnedRefWrapper<T>& o) { return o.get(); }
|
||||
struct BindUnwrapTraits<cef_internal::OwnedRefWrapper<T>> {
|
||||
static T& Unwrap(const cef_internal::OwnedRefWrapper<T>& o) { return o.get(); }
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct BindUnwrapTraits<internal::PassedWrapper<T>> {
|
||||
static T Unwrap(const internal::PassedWrapper<T>& o) { return o.Take(); }
|
||||
struct BindUnwrapTraits<cef_internal::PassedWrapper<T>> {
|
||||
static T Unwrap(const cef_internal::PassedWrapper<T>& o) { return o.Take(); }
|
||||
};
|
||||
|
||||
#if defined(OS_WIN)
|
||||
@ -1351,7 +1351,7 @@ struct CallbackCancellationTraits<
|
||||
Functor,
|
||||
std::tuple<BoundArgs...>,
|
||||
std::enable_if_t<
|
||||
internal::IsWeakMethod<internal::FunctorTraits<Functor>::is_method,
|
||||
cef_internal::IsWeakMethod<cef_internal::FunctorTraits<Functor>::is_method,
|
||||
BoundArgs...>::value>> {
|
||||
static constexpr bool is_cancellable = true;
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace base {
|
||||
|
||||
struct FakeBindState;
|
||||
|
||||
namespace internal {
|
||||
namespace cef_internal {
|
||||
|
||||
class BindStateBase;
|
||||
class FinallyExecutorCommon;
|
||||
@ -269,7 +269,7 @@ struct ThenHelper<OriginalCallback<OriginalR(OriginalArgs...)>,
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
} // namespace cef_internal
|
||||
} // namespace base
|
||||
|
||||
#endif // CEF_INCLUDE_BASE_INTERNAL_CEF_CALLBACK_INTERNAL_H_
|
||||
|
@ -47,7 +47,7 @@ namespace base {
|
||||
|
||||
// This is a base internal implementation file used by task.h and callback.h.
|
||||
// Not for public consumption, so we wrap it in namespace internal.
|
||||
namespace internal {
|
||||
namespace cef_internal {
|
||||
|
||||
template <typename T, typename = void>
|
||||
struct IsRefCountedType : std::false_type {};
|
||||
@ -68,7 +68,7 @@ struct NeedsScopedRefptrButGetsRawPtr
|
||||
"NeedsScopedRefptrButGetsRawPtr requires non-reference type.");
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
} // namespace cef_internal
|
||||
|
||||
} // namespace base
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
namespace base {
|
||||
namespace mac {
|
||||
|
||||
namespace internal {
|
||||
namespace cef_internal {
|
||||
|
||||
template <typename B>
|
||||
struct ScopedBlockTraits {
|
||||
@ -53,12 +53,12 @@ struct ScopedBlockTraits {
|
||||
static void Release(B block) { Block_release(block); }
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
} // namespace cef_internal
|
||||
|
||||
// ScopedBlock<> is patterned after ScopedCFTypeRef<>, but uses Block_copy() and
|
||||
// Block_release() instead of CFRetain() and CFRelease().
|
||||
template <typename B>
|
||||
using ScopedBlock = ScopedTypeRef<B, internal::ScopedBlockTraits<B>>;
|
||||
using ScopedBlock = ScopedTypeRef<B, cef_internal::ScopedBlockTraits<B>>;
|
||||
|
||||
} // namespace mac
|
||||
} // namespace base
|
||||
|
Reference in New Issue
Block a user