This source file includes following definitions.
- create
- create
- respondWith
- interfaceName
- m_observer
- trace
#include "config.h"
#include "FetchEvent.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
#include "wtf/RefPtr.h"
namespace WebCore {
PassRefPtrWillBeRawPtr<FetchEvent> FetchEvent::create()
{
return adoptRefWillBeNoop(new FetchEvent());
}
PassRefPtrWillBeRawPtr<FetchEvent> FetchEvent::create(PassRefPtr<RespondWithObserver> observer)
{
return adoptRefWillBeNoop(new FetchEvent(observer));
}
void FetchEvent::respondWith(const ScriptValue& value)
{
m_observer->respondWith(value);
}
const AtomicString& FetchEvent::interfaceName() const
{
return EventNames::FetchEvent;
}
FetchEvent::FetchEvent()
{
ScriptWrappable::init(this);
}
FetchEvent::FetchEvent(PassRefPtr<RespondWithObserver> observer)
: Event(EventTypeNames::fetch, false, true)
, m_observer(observer)
{
ScriptWrappable::init(this);
}
void FetchEvent::trace(Visitor* visitor)
{
Event::trace(visitor);
}
}