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

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

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Patch Set: rebase Created 5 years, 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WorkerNavigatorServices_h 5 #ifndef WorkerNavigatorServices_h
6 #define WorkerNavigatorServices_h 6 #define WorkerNavigatorServices_h
7 7
8 #include "modules/ModulesExport.h"
8 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
9 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class ExecutionContext; 14 class ExecutionContext;
14 class ServicePortCollection; 15 class ServicePortCollection;
15 class WorkerNavigator; 16 class WorkerNavigator;
16 17
17 class WorkerNavigatorServices final : public GarbageCollectedFinalized<WorkerNav igatorServices>, public HeapSupplement<WorkerNavigator> { 18 class MODULES_EXPORT WorkerNavigatorServices final : public GarbageCollectedFina lized<WorkerNavigatorServices>, public HeapSupplement<WorkerNavigator> {
18 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorServices); 19 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorServices);
19 WTF_MAKE_NONCOPYABLE(WorkerNavigatorServices); 20 WTF_MAKE_NONCOPYABLE(WorkerNavigatorServices);
20 public: 21 public:
21 virtual ~WorkerNavigatorServices(); 22 virtual ~WorkerNavigatorServices();
22 static WorkerNavigatorServices& from(WorkerNavigator&); 23 static WorkerNavigatorServices& from(WorkerNavigator&);
23 24
24 static ServicePortCollection* services(ExecutionContext*, WorkerNavigator&); 25 static ServicePortCollection* services(ExecutionContext*, WorkerNavigator&);
25 ServicePortCollection* services(ExecutionContext*); 26 ServicePortCollection* services(ExecutionContext*);
26 27
27 DECLARE_VIRTUAL_TRACE(); 28 DECLARE_VIRTUAL_TRACE();
28 29
29 private: 30 private:
30 WorkerNavigatorServices(); 31 WorkerNavigatorServices();
31 static const char* supplementName(); 32 static const char* supplementName();
32 33
33 Member<ServicePortCollection> m_services; 34 Member<ServicePortCollection> m_services;
34 }; 35 };
35 36
36 } // namespace blink 37 } // namespace blink
37 38
38 #endif // WorkerNavigatorServices_h 39 #endif // WorkerNavigatorServices_h
OLDNEW
« no previous file with comments | « Source/modules/navigatorconnect/ServicePortConnectResponse.idl ('k') | Source/web/ServiceWorkerGlobalScopeProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698