| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ExtendableMessageEvent_h | 5 #ifndef ExtendableMessageEvent_h |
| 6 #define ExtendableMessageEvent_h | 6 #define ExtendableMessageEvent_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/ExtendableMessageEventInit.h" | 11 #include "modules/serviceworkers/ExtendableMessageEventInit.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class MODULES_EXPORT ExtendableMessageEvent final : public ExtendableEvent { | 15 class MODULES_EXPORT ExtendableMessageEvent final : public ExtendableEvent { |
| 16 DEFINE_WRAPPERTYPEINFO(); | 16 DEFINE_WRAPPERTYPEINFO(); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(); | 19 static RawPtr<ExtendableMessageEvent> create(); |
| 20 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicStr
ing& type, const ExtendableMessageEventInit& initializer); | 20 static RawPtr<ExtendableMessageEvent> create(const AtomicString& type, const
ExtendableMessageEventInit& initializer); |
| 21 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicStr
ing& type, const ExtendableMessageEventInit& initializer, WaitUntilObserver*); | 21 static RawPtr<ExtendableMessageEvent> create(const AtomicString& type, const
ExtendableMessageEventInit& initializer, WaitUntilObserver*); |
| 22 | 22 |
| 23 const AtomicString& interfaceName() const override; | 23 const AtomicString& interfaceName() const override; |
| 24 | 24 |
| 25 DECLARE_VIRTUAL_TRACE(); | 25 DECLARE_VIRTUAL_TRACE(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 ExtendableMessageEvent(); | 28 ExtendableMessageEvent(); |
| 29 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven
tInit& initializer); | 29 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven
tInit& initializer); |
| 30 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven
tInit& initializer, WaitUntilObserver*); | 30 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven
tInit& initializer, WaitUntilObserver*); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace blink | 33 } // namespace blink |
| 34 | 34 |
| 35 #endif // ExtendableMessageEvent_h | 35 #endif // ExtendableMessageEvent_h |
| OLD | NEW |