| 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() |
| 20 { |
| 21 } |
| 22 |
| 23 ScriptPromise ServicePortCollection::connect(ScriptState* scriptState, const Str
ing& url, const ServicePortConnectOptions& options) |
| 24 { |
| 25 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); |
| 26 } |
| 27 |
| 28 ScriptPromise ServicePortCollection::match(ScriptState* scriptState, const Servi
cePortMatchOptions& options) |
| 29 { |
| 30 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); |
| 31 } |
| 32 |
| 33 ScriptPromise ServicePortCollection::matchAll(ScriptState* scriptState, const Se
rvicePortMatchOptions& options) |
| 34 { |
| 35 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); |
| 36 } |
| 37 |
| 38 const AtomicString& ServicePortCollection::interfaceName() const |
| 39 { |
| 40 return EventTargetNames::ServicePortCollection; |
| 41 } |
| 42 |
| 43 ExecutionContext* ServicePortCollection::executionContext() const |
| 44 { |
| 45 return ContextLifecycleObserver::executionContext(); |
| 46 } |
| 47 |
| 48 DEFINE_TRACE(ServicePortCollection) |
| 49 { |
| 50 EventTargetWithInlineData::trace(visitor); |
| 51 ContextLifecycleObserver::trace(visitor); |
| 52 } |
| 53 |
| 54 ServicePortCollection::ServicePortCollection(ExecutionContext* context) |
| 55 : ContextLifecycleObserver(context) |
| 56 { |
| 57 } |
| 58 |
| 59 } // namespace blink |
| OLD | NEW |