| 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" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 WaitUntilObserver*); | 39 WaitUntilObserver*); |
| 40 | 40 |
| 41 SerializedScriptValue* SerializedData() const { | 41 SerializedScriptValue* SerializedData() const { |
| 42 return serialized_data_.Get(); | 42 return serialized_data_.Get(); |
| 43 } | 43 } |
| 44 void SetSerializedData(PassRefPtr<SerializedScriptValue> serialized_data) { | 44 void SetSerializedData(PassRefPtr<SerializedScriptValue> serialized_data) { |
| 45 serialized_data_ = std::move(serialized_data); | 45 serialized_data_ = std::move(serialized_data); |
| 46 } | 46 } |
| 47 const String& origin() const { return origin_; } | 47 const String& origin() const { return origin_; } |
| 48 const String& lastEventId() const { return last_event_id_; } | 48 const String& lastEventId() const { return last_event_id_; } |
| 49 MessagePortArray ports(bool& is_null) const; | |
| 50 MessagePortArray ports() const; | 49 MessagePortArray ports() const; |
| 51 void source(ClientOrServiceWorkerOrMessagePort& result) const; | 50 void source(ClientOrServiceWorkerOrMessagePort& result) const; |
| 52 | 51 |
| 53 const AtomicString& InterfaceName() const override; | 52 const AtomicString& InterfaceName() const override; |
| 54 | 53 |
| 55 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 56 | 55 |
| 57 private: | 56 private: |
| 58 ExtendableMessageEvent(const AtomicString& type, | 57 ExtendableMessageEvent(const AtomicString& type, |
| 59 const ExtendableMessageEventInit& initializer); | 58 const ExtendableMessageEventInit& initializer); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 70 String last_event_id_; | 69 String last_event_id_; |
| 71 Member<ServiceWorkerClient> source_as_client_; | 70 Member<ServiceWorkerClient> source_as_client_; |
| 72 Member<ServiceWorker> source_as_service_worker_; | 71 Member<ServiceWorker> source_as_service_worker_; |
| 73 Member<MessagePort> source_as_message_port_; | 72 Member<MessagePort> source_as_message_port_; |
| 74 Member<MessagePortArray> ports_; | 73 Member<MessagePortArray> ports_; |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace blink | 76 } // namespace blink |
| 78 | 77 |
| 79 #endif // ExtendableMessageEvent_h | 78 #endif // ExtendableMessageEvent_h |
| OLD | NEW |