Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: remoting/host/security_key/gnubby_extension_session.h

Issue 2091553002: Expose ClientSession details to Host Extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@desktop_environment
Patch Set: Adressing feedback Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/host/security_key/gnubby_extension.cc ('k') | remoting/host/security_key/gnubby_extension_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698