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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "modules/serviceworkers/InstallEvent.h" 5 #include "modules/serviceworkers/InstallEvent.h"
6 6
7 #include "core/dom/ExceptionCode.h" 7 #include "core/dom/ExceptionCode.h"
8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create() 12 RawPtr<InstallEvent> InstallEvent::create()
13 { 13 {
14 return adoptRefWillBeNoop(new InstallEvent()); 14 return (new InstallEvent());
15 } 15 }
16 16
17 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& ty pe, const ExtendableEventInit& eventInit) 17 RawPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const Extend ableEventInit& eventInit)
18 { 18 {
19 return adoptRefWillBeNoop(new InstallEvent(type, eventInit)); 19 return (new InstallEvent(type, eventInit));
20 } 20 }
21 21
22 PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& ty pe, const ExtendableEventInit& eventInit, WaitUntilObserver* observer) 22 RawPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const Extend ableEventInit& eventInit, WaitUntilObserver* observer)
23 { 23 {
24 return adoptRefWillBeNoop(new InstallEvent(type, eventInit, observer)); 24 return (new InstallEvent(type, eventInit, observer));
25 } 25 }
26 26
27 InstallEvent::~InstallEvent() 27 InstallEvent::~InstallEvent()
28 { 28 {
29 } 29 }
30 30
31 void InstallEvent::registerForeignFetchScopes(ExecutionContext* executionContext , const Vector<String>& subScopes, ExceptionState& exceptionState) 31 void InstallEvent::registerForeignFetchScopes(ExecutionContext* executionContext , const Vector<String>& subScopes, ExceptionState& exceptionState)
32 { 32 {
33 if (!isBeingDispatched()) { 33 if (!isBeingDispatched()) {
34 exceptionState.throwDOMException(InvalidStateError, "The event handler i s already finished."); 34 exceptionState.throwDOMException(InvalidStateError, "The event handler i s already finished.");
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 : ExtendableEvent(type, initializer) 74 : ExtendableEvent(type, initializer)
75 { 75 {
76 } 76 }
77 77
78 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit& initializer, WaitUntilObserver* observer) 78 InstallEvent::InstallEvent(const AtomicString& type, const ExtendableEventInit& initializer, WaitUntilObserver* observer)
79 : ExtendableEvent(type, initializer, observer) 79 : ExtendableEvent(type, initializer, observer)
80 { 80 {
81 } 81 }
82 82
83 } // namespace blink 83 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698