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

Side by Side Diff: Source/modules/navigatorconnect/NavigatorServices.h

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 #ifndef NavigatorServices_h
6 #define NavigatorServices_h
7
8 #include "platform/Supplementable.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class ExecutionContext;
14 class ServicePortCollection;
15 class Navigator;
16
17 class NavigatorServices final : public GarbageCollectedFinalized<NavigatorServic es>, public HeapSupplement<Navigator> {
18 USING_GARBAGE_COLLECTED_MIXIN(NavigatorServices);
19 WTF_MAKE_NONCOPYABLE(NavigatorServices);
20 public:
21 virtual ~NavigatorServices();
22 static NavigatorServices& from(Navigator&);
23
24 static ServicePortCollection* services(ExecutionContext*, Navigator&);
25 ServicePortCollection* services(ExecutionContext*);
26
27 DECLARE_VIRTUAL_TRACE();
28
29 private:
30 NavigatorServices();
31 static const char* supplementName();
32
33 RefPtrWillBeMember<ServicePortCollection> m_services;
34 };
35
36 } // namespace blink
37
38 #endif // NavigatorServices_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698