Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
| 6 #include "modules/navigatorconnect/ServicePortCollection.h" | |
| 7 | |
| 8 #include "core/dom/DOMException.h" | |
| 9 #include "core/dom/ExceptionCode.h" | |
| 10 #include "modules/EventTargetModules.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 PassRefPtrWillBeRawPtr<ServicePortCollection> ServicePortCollection::create(Exec utionContext* context) | |
| 15 { | |
| 16 return adoptRefWillBeNoop(new ServicePortCollection(context)); | |
| 17 } | |
| 18 | |
| 19 ServicePortCollection::ServicePortCollection(ExecutionContext* context) | |
|
scheib
2015/06/23 03:57:21
Method definitions in the corresponding .cc file s
Marijn Kruisselbrink
2015/06/23 04:11:05
Done
| |
| 20 : ContextLifecycleObserver(context) | |
| 21 { | |
| 22 } | |
| 23 | |
| 24 ServicePortCollection::~ServicePortCollection() | |
| 25 { | |
| 26 } | |
| 27 | |
| 28 ScriptPromise ServicePortCollection::connect(ScriptState* scriptState, const Str ing& url, const ServicePortConnectOptions& options) | |
| 29 { | |
| 30 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError)); | |
| 31 } | |
| 32 | |
| 33 ScriptPromise ServicePortCollection::match(ScriptState* scriptState, const Servi cePortMatchOptions& options) | |
| 34 { | |
| 35 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError)); | |
| 36 } | |
| 37 | |
| 38 ScriptPromise ServicePortCollection::matchAll(ScriptState* scriptState, const Se rvicePortMatchOptions& options) | |
| 39 { | |
| 40 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError)); | |
| 41 } | |
| 42 | |
| 43 const AtomicString& ServicePortCollection::interfaceName() const | |
| 44 { | |
| 45 return EventTargetNames::ServicePortCollection; | |
|
scheib
2015/06/23 03:57:21
Doesn't seem to be defined.
Marijn Kruisselbrink
2015/06/23 04:11:05
It compiles (see trybots), so obviously it is defi
| |
| 46 } | |
| 47 | |
| 48 ExecutionContext* ServicePortCollection::executionContext() const | |
| 49 { | |
| 50 return ContextLifecycleObserver::executionContext(); | |
| 51 } | |
| 52 | |
| 53 DEFINE_TRACE(ServicePortCollection) | |
| 54 { | |
| 55 EventTargetWithInlineData::trace(visitor); | |
| 56 ContextLifecycleObserver::trace(visitor); | |
| 57 } | |
| 58 | |
| 59 } // namespace blink | |
| OLD | NEW |