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

Side by Side Diff: Source/modules/navigatorconnect/ServicePortCollection.cpp

Issue 1192913003: Start implementing new navigator.connect API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: override instead of virtual Created 5 years, 6 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698