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

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: 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(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698