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

Side by Side Diff: Source/modules/push_messaging/PushEvent.h

Issue 1311853002: Update PushEvent and PushMessageData to match the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 PushEvent_h 5 #ifndef PushEvent_h
6 #define PushEvent_h 6 #define PushEvent_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/push_messaging/PushEventInit.h"
11 #include "modules/push_messaging/PushMessageData.h" 10 #include "modules/push_messaging/PushMessageData.h"
12 #include "modules/serviceworkers/ExtendableEvent.h" 11 #include "modules/serviceworkers/ExtendableEvent.h"
13 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
14 #include "wtf/text/AtomicString.h" 13 #include "wtf/text/AtomicString.h"
15 #include "wtf/text/WTFString.h" 14 #include "wtf/text/WTFString.h"
16 15
17 namespace blink { 16 namespace blink {
18 17
18 class PushEventInit;
19
19 class MODULES_EXPORT PushEvent final : public ExtendableEvent { 20 class MODULES_EXPORT PushEvent final : public ExtendableEvent {
20 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
21 public: 22 public:
22 static PassRefPtrWillBeRawPtr<PushEvent> create() 23 static PassRefPtrWillBeRawPtr<PushEvent> create()
23 { 24 {
24 return adoptRefWillBeNoop(new PushEvent); 25 return adoptRefWillBeNoop(new PushEvent);
25 } 26 }
26 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, Pu shMessageData* data, WaitUntilObserver* observer) 27 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, Pu shMessageData* data, WaitUntilObserver* observer)
27 { 28 {
28 return adoptRefWillBeNoop(new PushEvent(type, data, observer)); 29 return adoptRefWillBeNoop(new PushEvent(type, data, observer));
(...skipping 15 matching lines...) Expand all
44 PushEvent(); 45 PushEvent();
45 PushEvent(const AtomicString& type, PushMessageData*, WaitUntilObserver*); 46 PushEvent(const AtomicString& type, PushMessageData*, WaitUntilObserver*);
46 PushEvent(const AtomicString& type, const PushEventInit&); 47 PushEvent(const AtomicString& type, const PushEventInit&);
47 48
48 PersistentWillBeMember<PushMessageData> m_data; 49 PersistentWillBeMember<PushMessageData> m_data;
49 }; 50 };
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 #endif // PushEvent_h 54 #endif // PushEvent_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js ('k') | Source/modules/push_messaging/PushEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698