#ifndef FetchEvent_h
#define FetchEvent_h
#include "core/events/Event.h"
#include "modules/serviceworkers/RespondWithObserver.h"
namespace WebCore {
class ExecutionContext;
class RespondWithObserver;
class FetchEvent FINAL : public Event {
public:
static PassRefPtrWillBeRawPtr<FetchEvent> create();
static PassRefPtrWillBeRawPtr<FetchEvent> create(PassRefPtr<RespondWithObserver>);
virtual ~FetchEvent() { }
void respondWith(const ScriptValue&);
virtual const AtomicString& interfaceName() const OVERRIDE;
virtual void trace(Visitor*) OVERRIDE;
protected:
FetchEvent();
explicit FetchEvent(PassRefPtr<RespondWithObserver>);
private:
RefPtr<RespondWithObserver> m_observer;
};
}
#endif