| 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 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class MODULES_EXPORT InstallEvent : public ExtendableEvent { | 14 class MODULES_EXPORT InstallEvent : public ExtendableEvent { |
| 15 DEFINE_WRAPPERTYPEINFO(); | 15 DEFINE_WRAPPERTYPEINFO(); |
| 16 | 16 |
| 17 public: | 17 public: |
| 18 static PassRefPtrWillBeRawPtr<InstallEvent> create(); | 18 static RawPtr<InstallEvent> create(); |
| 19 static PassRefPtrWillBeRawPtr<InstallEvent> create(const AtomicString& type,
const ExtendableEventInit&); | 19 static RawPtr<InstallEvent> create(const AtomicString& type, const Extendabl
eEventInit&); |
| 20 static PassRefPtrWillBeRawPtr<InstallEvent> create(const AtomicString& type,
const ExtendableEventInit&, WaitUntilObserver*); | 20 static RawPtr<InstallEvent> create(const AtomicString& type, const Extendabl
eEventInit&, WaitUntilObserver*); |
| 21 | 21 |
| 22 ~InstallEvent() override; | 22 ~InstallEvent() override; |
| 23 | 23 |
| 24 void registerForeignFetchScopes(ExecutionContext*, const Vector<String>& sub
Scopes, ExceptionState&); | 24 void registerForeignFetchScopes(ExecutionContext*, const Vector<String>& sub
Scopes, ExceptionState&); |
| 25 | 25 |
| 26 const AtomicString& interfaceName() const override; | 26 const AtomicString& interfaceName() const override; |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 InstallEvent(); | 29 InstallEvent(); |
| 30 InstallEvent(const AtomicString& type, const ExtendableEventInit&); | 30 InstallEvent(const AtomicString& type, const ExtendableEventInit&); |
| 31 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil
Observer*); | 31 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil
Observer*); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // InstallEvent_h | 36 #endif // InstallEvent_h |
| OLD | NEW |