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 #ifndef REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_H_ | 5 #ifndef REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_ |
6 #define REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_H_ | 6 #define REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "remoting/host/host_extension.h" | 12 #include "remoting/host/host_extension.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 class ClientSessionDetails; | 16 class ClientSessionDetails; |
17 class HostExtensionSession; | 17 class HostExtensionSession; |
18 | 18 |
19 // GnubbyExtension extends HostExtension to enable Security Key support. | 19 // SecurityKeyExtension extends HostExtension to enable Security Key support. |
20 class GnubbyExtension : public HostExtension { | 20 class SecurityKeyExtension : public HostExtension { |
21 public: | 21 public: |
22 GnubbyExtension(); | 22 SecurityKeyExtension(); |
23 ~GnubbyExtension() override; | 23 ~SecurityKeyExtension() override; |
24 | 24 |
25 // HostExtension interface. | 25 // HostExtension interface. |
26 std::string capability() const override; | 26 std::string capability() const override; |
27 std::unique_ptr<HostExtensionSession> CreateExtensionSession( | 27 std::unique_ptr<HostExtensionSession> CreateExtensionSession( |
28 ClientSessionDetails* client_session_details, | 28 ClientSessionDetails* client_session_details, |
29 protocol::ClientStub* client_stub) override; | 29 protocol::ClientStub* client_stub) override; |
30 | 30 |
31 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(GnubbyExtension); | 32 DISALLOW_COPY_AND_ASSIGN(SecurityKeyExtension); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace remoting | 35 } // namespace remoting |
36 | 36 |
37 #endif // REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_H_ | 37 #endif // REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_EXTENSION_H_ |
OLD | NEW |