OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 NavigatorAuth_h |
| 6 #define NavigatorAuth_h |
| 7 |
| 8 #include "platform/Supplementable.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class Navigator; |
| 14 class WebAuthentication; |
| 15 |
| 16 class NavigatorAuth final : public GarbageCollected<NavigatorAuth>, |
| 17 public Supplement<Navigator> { |
| 18 USING_GARBAGE_COLLECTED_MIXIN(NavigatorAuth); |
| 19 |
| 20 public: |
| 21 static NavigatorAuth& from(Navigator&); |
| 22 |
| 23 static WebAuthentication* authentication(Navigator&); |
| 24 WebAuthentication* authentication(); |
| 25 |
| 26 DECLARE_TRACE(); |
| 27 |
| 28 private: |
| 29 explicit NavigatorAuth(Navigator&); |
| 30 static const char* supplementName(); |
| 31 |
| 32 Member<WebAuthentication> m_webauthentication; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // NavigatorAuth_h |
OLD | NEW |