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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "modules/serviceworkers/ExtendableEvent.h" 31 #include "modules/serviceworkers/ExtendableEvent.h"
32 32
33 #include "bindings/core/v8/ScriptWrappable.h" 33 #include "bindings/core/v8/ScriptWrappable.h"
34 #include "modules/serviceworkers/WaitUntilObserver.h" 34 #include "modules/serviceworkers/WaitUntilObserver.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 PassRefPtrWillBeRawPtr<ExtendableEvent> ExtendableEvent::create() 38 RawPtr<ExtendableEvent> ExtendableEvent::create()
39 { 39 {
40 return adoptRefWillBeNoop(new ExtendableEvent()); 40 return (new ExtendableEvent());
41 } 41 }
42 42
43 PassRefPtrWillBeRawPtr<ExtendableEvent> ExtendableEvent::create(const AtomicStri ng& type, const ExtendableEventInit& eventInit) 43 RawPtr<ExtendableEvent> ExtendableEvent::create(const AtomicString& type, const ExtendableEventInit& eventInit)
44 { 44 {
45 return adoptRefWillBeNoop(new ExtendableEvent(type, eventInit)); 45 return (new ExtendableEvent(type, eventInit));
46 } 46 }
47 47
48 PassRefPtrWillBeRawPtr<ExtendableEvent> ExtendableEvent::create(const AtomicStri ng& type, const ExtendableEventInit& eventInit, WaitUntilObserver* observer) 48 RawPtr<ExtendableEvent> ExtendableEvent::create(const AtomicString& type, const ExtendableEventInit& eventInit, WaitUntilObserver* observer)
49 { 49 {
50 return adoptRefWillBeNoop(new ExtendableEvent(type, eventInit, observer)); 50 return (new ExtendableEvent(type, eventInit, observer));
51 } 51 }
52 52
53 ExtendableEvent::~ExtendableEvent() 53 ExtendableEvent::~ExtendableEvent()
54 { 54 {
55 } 55 }
56 56
57 void ExtendableEvent::waitUntil(ScriptState* scriptState, ScriptPromise scriptPr omise, ExceptionState& exceptionState) 57 void ExtendableEvent::waitUntil(ScriptState* scriptState, ScriptPromise scriptPr omise, ExceptionState& exceptionState)
58 { 58 {
59 if (m_observer) 59 if (m_observer)
60 m_observer->waitUntil(scriptState, scriptPromise, exceptionState); 60 m_observer->waitUntil(scriptState, scriptPromise, exceptionState);
(...skipping 19 matching lines...) Expand all
80 return EventNames::ExtendableEvent; 80 return EventNames::ExtendableEvent;
81 } 81 }
82 82
83 DEFINE_TRACE(ExtendableEvent) 83 DEFINE_TRACE(ExtendableEvent)
84 { 84 {
85 visitor->trace(m_observer); 85 visitor->trace(m_observer);
86 Event::trace(visitor); 86 Event::trace(visitor);
87 } 87 }
88 88
89 } // namespace blink 89 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698