Commit 375dffda authored by sigbjornf's avatar sigbjornf Committed by Commit bot

Remove PreFinalizer{Callback} type aliases from view.

Internal types, no good reason to expose these to the outside.

R=
BUG=673645

Review-Url: https://codereview.chromium.org/2573783002
Cr-Commit-Position: refs/heads/master@{#438170}
parent 8f935ed7
...@@ -23,7 +23,6 @@ using VisitorCallback = void (*)(Visitor*, void* self); ...@@ -23,7 +23,6 @@ using VisitorCallback = void (*)(Visitor*, void* self);
using TraceCallback = VisitorCallback; using TraceCallback = VisitorCallback;
using WeakCallback = VisitorCallback; using WeakCallback = VisitorCallback;
using EphemeronCallback = VisitorCallback; using EphemeronCallback = VisitorCallback;
using PreFinalizerCallback = bool (*)(void*);
// Simple alias to avoid heap compaction type signatures turning into // Simple alias to avoid heap compaction type signatures turning into
// a sea of generic |void*|s. // a sea of generic |void*|s.
......
...@@ -117,8 +117,6 @@ class PLATFORM_EXPORT ThreadState { ...@@ -117,8 +117,6 @@ class PLATFORM_EXPORT ThreadState {
WTF_MAKE_NONCOPYABLE(ThreadState); WTF_MAKE_NONCOPYABLE(ThreadState);
public: public:
typedef std::pair<void*, PreFinalizerCallback> PreFinalizer;
// See setGCState() for possible state transitions. // See setGCState() for possible state transitions.
enum GCState { enum GCState {
NoGCScheduled, NoGCScheduled,
...@@ -705,6 +703,9 @@ class PLATFORM_EXPORT ThreadState { ...@@ -705,6 +703,9 @@ class PLATFORM_EXPORT ThreadState {
std::unique_ptr<CallbackStack> m_threadLocalWeakCallbackStack; std::unique_ptr<CallbackStack> m_threadLocalWeakCallbackStack;
using PreFinalizerCallback = bool (*)(void*);
using PreFinalizer = std::pair<void*, PreFinalizerCallback>;
// Pre-finalizers are called in the reverse order in which they are // Pre-finalizers are called in the reverse order in which they are
// registered by the constructors (including constructors of Mixin objects) // registered by the constructors (including constructors of Mixin objects)
// for an object, by processing the m_orderedPreFinalizers back-to-front. // for an object, by processing the m_orderedPreFinalizers back-to-front.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment