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

Side by Side Diff: third_party/WebKit/Source/modules/navigatorconnect/ServicePortConnectEvent.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/navigatorconnect/ServicePortConnectEvent.h" 5 #include "modules/navigatorconnect/ServicePortConnectEvent.h"
6 6
7 #include "core/dom/DOMException.h" 7 #include "core/dom/DOMException.h"
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "modules/navigatorconnect/AcceptConnectionObserver.h" 9 #include "modules/navigatorconnect/AcceptConnectionObserver.h"
10 #include "modules/navigatorconnect/ServicePortConnectEventInit.h" 10 #include "modules/navigatorconnect/ServicePortConnectEventInit.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 PassRefPtrWillBeRawPtr<ServicePortConnectEvent> ServicePortConnectEvent::create( ) 14 RawPtr<ServicePortConnectEvent> ServicePortConnectEvent::create()
15 { 15 {
16 return adoptRefWillBeNoop(new ServicePortConnectEvent()); 16 return (new ServicePortConnectEvent());
17 } 17 }
18 18
19 PassRefPtrWillBeRawPtr<ServicePortConnectEvent> ServicePortConnectEvent::create( const AtomicString& type, const ServicePortConnectEventInit& initializer) 19 RawPtr<ServicePortConnectEvent> ServicePortConnectEvent::create(const AtomicStri ng& type, const ServicePortConnectEventInit& initializer)
20 { 20 {
21 return adoptRefWillBeNoop(new ServicePortConnectEvent(type, initializer, nul lptr)); 21 return (new ServicePortConnectEvent(type, initializer, nullptr));
22 } 22 }
23 23
24 PassRefPtrWillBeRawPtr<ServicePortConnectEvent> ServicePortConnectEvent::create( const AtomicString& type, const ServicePortConnectEventInit& initializer, Accept ConnectionObserver* observer) 24 RawPtr<ServicePortConnectEvent> ServicePortConnectEvent::create(const AtomicStri ng& type, const ServicePortConnectEventInit& initializer, AcceptConnectionObserv er* observer)
25 { 25 {
26 return adoptRefWillBeNoop(new ServicePortConnectEvent(type, initializer, obs erver)); 26 return (new ServicePortConnectEvent(type, initializer, observer));
27 } 27 }
28 28
29 ScriptPromise ServicePortConnectEvent::respondWith(ScriptState* scriptState, con st ScriptPromise& response, ExceptionState& exceptionState) 29 ScriptPromise ServicePortConnectEvent::respondWith(ScriptState* scriptState, con st ScriptPromise& response, ExceptionState& exceptionState)
30 { 30 {
31 stopImmediatePropagation(); 31 stopImmediatePropagation();
32 if (m_observer) 32 if (m_observer)
33 return m_observer->respondWith(scriptState, response, exceptionState); 33 return m_observer->respondWith(scriptState, response, exceptionState);
34 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError)); 34 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError));
35 } 35 }
36 36
(...skipping 15 matching lines...) Expand all
52 ServicePortConnectEvent::ServicePortConnectEvent(const AtomicString& type, const ServicePortConnectEventInit& initializer, AcceptConnectionObserver* observer) 52 ServicePortConnectEvent::ServicePortConnectEvent(const AtomicString& type, const ServicePortConnectEventInit& initializer, AcceptConnectionObserver* observer)
53 : ExtendableEvent(type, initializer) 53 : ExtendableEvent(type, initializer)
54 , m_observer(observer) 54 , m_observer(observer)
55 , m_targetURL(initializer.targetURL()) 55 , m_targetURL(initializer.targetURL())
56 , m_origin(initializer.origin()) 56 , m_origin(initializer.origin())
57 { 57 {
58 } 58 }
59 59
60 } // namespace blink 60 } // namespace blink
61 61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698