blob: f7b18ef50df779b1452d1bbf7755c9abd656829a [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef InstallEvent_h
#define InstallEvent_h
#include "modules/EventModules.h"
#include "modules/ModulesExport.h"
#include "modules/serviceworkers/ExtendableEvent.h"
#include "modules/serviceworkers/ForeignFetchOptions.h"
namespace blink {
class MODULES_EXPORT InstallEvent : public ExtendableEvent {
DEFINE_WRAPPERTYPEINFO();
public:
static InstallEvent* create(const AtomicString& type,
const ExtendableEventInit&);
static InstallEvent* create(const AtomicString& type,
const ExtendableEventInit&,
WaitUntilObserver*);
~InstallEvent() override;
void registerForeignFetch(ExecutionContext*,
const ForeignFetchOptions&,
ExceptionState&);
const AtomicString& interfaceName() const override;
protected:
InstallEvent(const AtomicString& type, const ExtendableEventInit&);
InstallEvent(const AtomicString& type,
const ExtendableEventInit&,
WaitUntilObserver*);
};
} // namespace blink
#endif // InstallEvent_h