| 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 #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 |
| OLD | NEW |