Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h

Issue 1696653002: Fix non-Oilpan build following r375129. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create();
20 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicStr ing& type, const ExtendableMessageEventInit& initializer); 20 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicStr ing& type, const ExtendableMessageEventInit& initializer);
21 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicStr ing& type, const ExtendableMessageEventInit& initializer, WaitUntilObserver*); 21 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicStr ing& type, const ExtendableMessageEventInit& initializer, WaitUntilObserver*);
22 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(PassRefPtr<Seri alizedScriptValue> data, const String& origin, PassOwnPtrWillBeRawPtr<MessagePor tArray> ports, WaitUntilObserver*); 22 static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(PassRefPtr<Seri alizedScriptValue> data, const String& origin, MessagePortArray* ports, WaitUnti lObserver*);
23 23
24 SerializedScriptValue* serializedData() const { return m_serializedData.get( ); } 24 SerializedScriptValue* serializedData() const { return m_serializedData.get( ); }
25 void setSerializedData(PassRefPtr<SerializedScriptValue> serializedData) { m _serializedData = serializedData; } 25 void setSerializedData(PassRefPtr<SerializedScriptValue> serializedData) { m _serializedData = serializedData; }
26 const String& origin() const { return m_origin; } 26 const String& origin() const { return m_origin; }
27 const String& lastEventId() const { return m_lastEventId; } 27 const String& lastEventId() const { return m_lastEventId; }
28 MessagePortArray ports(bool& isNull) const; 28 MessagePortArray ports(bool& isNull) const;
29 MessagePortArray ports() const; 29 MessagePortArray ports() const;
30 void source(ClientOrServiceWorkerOrMessagePort& result) const; 30 void source(ClientOrServiceWorkerOrMessagePort& result) const;
31 31
32 const AtomicString& interfaceName() const override; 32 const AtomicString& interfaceName() const override;
33 33
34 DECLARE_VIRTUAL_TRACE(); 34 DECLARE_VIRTUAL_TRACE();
35 35
36 private: 36 private:
37 ExtendableMessageEvent(); 37 ExtendableMessageEvent();
38 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven tInit& initializer); 38 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven tInit& initializer);
39 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven tInit& initializer, WaitUntilObserver*); 39 ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEven tInit& initializer, WaitUntilObserver*);
40 ExtendableMessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, PassOwnPtrWillBeRawPtr<MessagePortArray> ports, WaitUntilObserver*); 40 ExtendableMessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, MessagePortArray* ports, WaitUntilObserver*);
41 41
42 RefPtr<SerializedScriptValue> m_serializedData; 42 RefPtr<SerializedScriptValue> m_serializedData;
43 String m_origin; 43 String m_origin;
44 String m_lastEventId; 44 String m_lastEventId;
45 Member<ServiceWorkerClient> m_sourceAsClient; 45 PersistentWillBeMember<ServiceWorkerClient> m_sourceAsClient;
46 Member<ServiceWorker> m_sourceAsServiceWorker; 46 PersistentWillBeMember<ServiceWorker> m_sourceAsServiceWorker;
47 Member<MessagePort> m_sourceAsMessagePort; 47 PersistentWillBeMember<MessagePort> m_sourceAsMessagePort;
48 OwnPtrWillBeMember<MessagePortArray> m_ports; 48 PersistentWillBeMember<MessagePortArray> m_ports;
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // ExtendableMessageEvent_h 53 #endif // ExtendableMessageEvent_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698