webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
WebKit::GenericCallback< T > Class Template Reference

#include <GenericCallback.h>

Inheritance diagram for WebKit::GenericCallback< T >:
WebCore::CallbackBase WTF::RefCounted< CallbackBase > WTF::RefCounted< CallbackBase > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Types

typedef std::function< void(T..., Error)> CallbackFunction
 

Public Member Functions

virtual ~GenericCallback ()
 
void performCallbackWithReturnValue (T... returnValue)
 
void performCallback ()
 
void invalidate (Error error=Error::Unknown) final
 
- Public Member Functions inherited from WebCore::CallbackBase
virtual ~CallbackBase ()
 
uint64_t callbackID () const
 
virtual ~CallbackBase ()
 
uint64_t callbackID () const
 
- Public Member Functions inherited from WTF::RefCounted< CallbackBase >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static PassRefPtr< GenericCallbackcreate (CallbackFunction callback, const ProcessThrottler::BackgroundActivityToken &activityToken=nullptr)
 

Friends

class CallbackBase
 

Additional Inherited Members

- Protected Member Functions inherited from WebCore::CallbackBase
 CallbackBase (void *context)
 
voidcontext () const
 
 CallbackBase (void *context)
 
voidcontext () const
 
- Protected Member Functions inherited from WTF::RefCounted< CallbackBase >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Member Typedef Documentation

◆ CallbackFunction

template<typename... T>
typedef std::function<void (T..., Error)> WebKit::GenericCallback< T >::CallbackFunction

Constructor & Destructor Documentation

◆ ~GenericCallback()

template<typename... T>
virtual WebKit::GenericCallback< T >::~GenericCallback ( )
inlinevirtual

Member Function Documentation

◆ create()

template<typename... T>
static PassRefPtr<GenericCallback> WebKit::GenericCallback< T >::create ( CallbackFunction  callback,
const ProcessThrottler::BackgroundActivityToken activityToken = nullptr 
)
inlinestatic

◆ invalidate()

template<typename... T>
void WebKit::GenericCallback< T >::invalidate ( Error  error = Error::Unknown)
inlinefinal

◆ performCallback()

template<typename... T>
void WebKit::GenericCallback< T >::performCallback ( )
inline

◆ performCallbackWithReturnValue()

template<typename... T>
void WebKit::GenericCallback< T >::performCallbackWithReturnValue ( T...  returnValue)
inline

Friends And Related Function Documentation

◆ CallbackBase

template<typename... T>
friend class CallbackBase
friend

The documentation for this class was generated from the following file: