| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #include "modules/webauth/NavigatorAuth.h" | 5 #include "modules/webauth/NavigatorAuth.h" |
| 6 | 6 |
| 7 #include "core/frame/Navigator.h" | 7 #include "core/frame/Navigator.h" |
| 8 #include "modules/webauth/WebAuthentication.h" | 8 #include "modules/webauth/WebAuthentication.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 WebAuthentication* NavigatorAuth::authentication() { | 26 WebAuthentication* NavigatorAuth::authentication() { |
| 27 return m_webauthentication; | 27 return m_webauthentication; |
| 28 } | 28 } |
| 29 | 29 |
| 30 DEFINE_TRACE(NavigatorAuth) { | 30 DEFINE_TRACE(NavigatorAuth) { |
| 31 visitor->trace(m_webauthentication); | 31 visitor->trace(m_webauthentication); |
| 32 Supplement<Navigator>::trace(visitor); | 32 Supplement<Navigator>::trace(visitor); |
| 33 } | 33 } |
| 34 | 34 |
| 35 NavigatorAuth::NavigatorAuth(Navigator& navigator) { | 35 NavigatorAuth::NavigatorAuth(Navigator& navigator) |
| 36 : Supplement<Navigator>(navigator) { |
| 36 if (navigator.frame()) | 37 if (navigator.frame()) |
| 37 m_webauthentication = WebAuthentication::create(*navigator.frame()); | 38 m_webauthentication = WebAuthentication::create(*navigator.frame()); |
| 38 } | 39 } |
| 39 | 40 |
| 40 const char* NavigatorAuth::supplementName() { | 41 const char* NavigatorAuth::supplementName() { |
| 41 return "NavigatorAuth"; | 42 return "NavigatorAuth"; |
| 42 } | 43 } |
| 43 | 44 |
| 44 } // namespace blink | 45 } // namespace blink |
| OLD | NEW |