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

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

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and applied senorblanco+haraken feedbac Created 5 years, 1 month 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
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/PushMessageData.h" 10 #include "modules/push_messaging/PushMessageData.h"
(...skipping 10 matching lines...) Expand all
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 public: 22 public:
23 static PassRefPtrWillBeRawPtr<PushEvent> create() 23 static PassRefPtrWillBeRawPtr<PushEvent> create()
24 { 24 {
25 return adoptRefWillBeNoop(new PushEvent); 25 return adoptRefWillBeNoop(new PushEvent);
26 } 26 }
27 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)
28 { 28 {
29 return adoptRefWillBeNoop(new PushEvent(type, data, observer)); 29 return adoptRefWillBeNoop(new PushEvent(type, data, observer));
30 } 30 }
31 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co nst PushEventInit& initializer) 31 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co nst PushEventInit& initializer, ExceptionState& exceptionState)
32 { 32 {
33 return adoptRefWillBeNoop(new PushEvent(type, initializer)); 33 return adoptRefWillBeNoop(new PushEvent(type, initializer, exceptionStat e));
34 } 34 }
35 35
36 ~PushEvent() override; 36 ~PushEvent() override;
37 37
38 const AtomicString& interfaceName() const override; 38 const AtomicString& interfaceName() const override;
39 39
40 PushMessageData* data(); 40 PushMessageData* data();
41 41
42 DECLARE_VIRTUAL_TRACE(); 42 DECLARE_VIRTUAL_TRACE();
43 43
44 private: 44 private:
45 PushEvent(); 45 PushEvent();
46 PushEvent(const AtomicString& type, PushMessageData*, WaitUntilObserver*); 46 PushEvent(const AtomicString& type, PushMessageData*, WaitUntilObserver*);
47 PushEvent(const AtomicString& type, const PushEventInit&); 47 PushEvent(const AtomicString& type, const PushEventInit&, ExceptionState&);
48 48
49 PersistentWillBeMember<PushMessageData> m_data; 49 PersistentWillBeMember<PushMessageData> m_data;
50 }; 50 };
51 51
52 } // namespace blink 52 } // namespace blink
53 53
54 #endif // PushEvent_h 54 #endif // PushEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698