| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef InstallEvent_h | 5 #ifndef InstallEvent_h |
| 6 #define InstallEvent_h | 6 #define InstallEvent_h |
| 7 | 7 |
| 8 #include "modules/EventModules.h" | 8 #include "modules/EventModules.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "modules/serviceworkers/ExtendableEvent.h" | 10 #include "modules/serviceworkers/ExtendableEvent.h" |
| 11 #include "modules/serviceworkers/ForeignFetchOptions.h" | 11 #include "modules/serviceworkers/ForeignFetchOptions.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class USVStringOrUSVStringSequence; | 15 class USVStringOrUSVStringSequence; |
| 16 | 16 |
| 17 class MODULES_EXPORT InstallEvent : public ExtendableEvent { | 17 class MODULES_EXPORT InstallEvent : public ExtendableEvent { |
| 18 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 static InstallEvent* create(); | |
| 22 static InstallEvent* create(const AtomicString& type, const ExtendableEventI
nit&); | 21 static InstallEvent* create(const AtomicString& type, const ExtendableEventI
nit&); |
| 23 static InstallEvent* create(const AtomicString& type, const ExtendableEventI
nit&, WaitUntilObserver*); | 22 static InstallEvent* create(const AtomicString& type, const ExtendableEventI
nit&, WaitUntilObserver*); |
| 24 | 23 |
| 25 ~InstallEvent() override; | 24 ~InstallEvent() override; |
| 26 | 25 |
| 27 void registerForeignFetch(ExecutionContext*, const ForeignFetchOptions&, Exc
eptionState&); | 26 void registerForeignFetch(ExecutionContext*, const ForeignFetchOptions&, Exc
eptionState&); |
| 28 | 27 |
| 29 const AtomicString& interfaceName() const override; | 28 const AtomicString& interfaceName() const override; |
| 30 | 29 |
| 31 protected: | 30 protected: |
| 32 InstallEvent(); | |
| 33 InstallEvent(const AtomicString& type, const ExtendableEventInit&); | 31 InstallEvent(const AtomicString& type, const ExtendableEventInit&); |
| 34 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil
Observer*); | 32 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil
Observer*); |
| 35 }; | 33 }; |
| 36 | 34 |
| 37 } // namespace blink | 35 } // namespace blink |
| 38 | 36 |
| 39 #endif // InstallEvent_h | 37 #endif // InstallEvent_h |
| OLD | NEW |