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_SESSION_H_ | 5 #ifndef REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_ |
6 #define REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_ | 6 #define REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 class ClientStub; | 25 class ClientStub; |
26 } | 26 } |
27 | 27 |
28 // A HostExtensionSession implementation that enables Security Key support. | 28 // A HostExtensionSession implementation that enables Security Key support. |
29 class GnubbyExtensionSession : public HostExtensionSession { | 29 class GnubbyExtensionSession : public HostExtensionSession { |
30 public: | 30 public: |
31 explicit GnubbyExtensionSession(protocol::ClientStub* client_stub); | 31 explicit GnubbyExtensionSession(protocol::ClientStub* client_stub); |
32 ~GnubbyExtensionSession() override; | 32 ~GnubbyExtensionSession() override; |
33 | 33 |
34 // HostExtensionSession interface. | 34 // HostExtensionSession interface. |
35 bool OnExtensionMessage(ClientSessionControl* client_session_control, | 35 bool OnExtensionMessage(ClientSessionDetails* client_session_details, |
36 protocol::ClientStub* client_stub, | 36 protocol::ClientStub* client_stub, |
37 const protocol::ExtensionMessage& message) override; | 37 const protocol::ExtensionMessage& message) override; |
38 | 38 |
39 // Allows the underlying GnubbyAuthHandler to be overridden for unit testing. | 39 // Allows the underlying GnubbyAuthHandler to be overridden for unit testing. |
40 void SetGnubbyAuthHandlerForTesting( | 40 void SetGnubbyAuthHandlerForTesting( |
41 std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler); | 41 std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler); |
42 | 42 |
43 private: | 43 private: |
44 // These methods process specific gnubby extension message types. | 44 // These methods process specific gnubby extension message types. |
45 void ProcessControlMessage(base::DictionaryValue* message_data) const; | 45 void ProcessControlMessage(base::DictionaryValue* message_data) const; |
(...skipping 10 matching lines...) Expand all Loading... |
56 | 56 |
57 // Handles platform specific gnubby operations. | 57 // Handles platform specific gnubby operations. |
58 std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler_; | 58 std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(GnubbyExtensionSession); | 60 DISALLOW_COPY_AND_ASSIGN(GnubbyExtensionSession); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace remoting | 63 } // namespace remoting |
64 | 64 |
65 #endif // REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_ | 65 #endif // REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_ |
OLD | NEW |