OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 NavigatorMediaCapabilities_h |
| 6 #define NavigatorMediaCapabilities_h |
| 7 |
| 8 #include "core/frame/Navigator.h" |
| 9 #include "platform/Supplementable.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class MediaCapabilities; |
| 14 class Navigator; |
| 15 |
| 16 // Provides MediaCapabilities as a supplement of Navigator as an attribute. |
| 17 class NavigatorMediaCapabilities final |
| 18 : public GarbageCollected<NavigatorMediaCapabilities>, |
| 19 public Supplement<Navigator> { |
| 20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorMediaCapabilities); |
| 21 |
| 22 public: |
| 23 static MediaCapabilities* mediaCapabilities(Navigator&); |
| 24 |
| 25 DECLARE_TRACE(); |
| 26 |
| 27 private: |
| 28 explicit NavigatorMediaCapabilities(Navigator&); |
| 29 |
| 30 static NavigatorMediaCapabilities& from(Navigator&); |
| 31 static const char* supplementName(); |
| 32 |
| 33 // The MediaCapabilities instance of this Navigator. |
| 34 Member<MediaCapabilities> m_capabilities; |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // NavigatorMediaCapabilities_h |
OLD | NEW |