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 #include "remoting/host/security_key/gnubby_extension.h" |
| 6 |
| 7 #include "base/memory/ptr_util.h" |
| 8 #include "remoting/host/security_key/gnubby_extension_session.h" |
| 9 |
| 10 namespace { |
| 11 // TODO(joedow): Update this once clients support sending a gnubby capabililty. |
| 12 // Tracked via: crbug.com/587485 |
| 13 const char kCapability[] = ""; |
| 14 } |
| 15 |
| 16 namespace remoting { |
| 17 |
| 18 GnubbyExtension::GnubbyExtension() {} |
| 19 |
| 20 GnubbyExtension::~GnubbyExtension() {} |
| 21 |
| 22 std::string GnubbyExtension::capability() const { |
| 23 return kCapability; |
| 24 } |
| 25 |
| 26 std::unique_ptr<HostExtensionSession> GnubbyExtension::CreateExtensionSession( |
| 27 ClientSessionDetails* details, |
| 28 protocol::ClientStub* client_stub) { |
| 29 // TODO(joedow): Update this mechanism to allow for multiple sessions. The |
| 30 // extension will only send messages through the initial |
| 31 // |client_stub| and |details| with the current design. |
| 32 return base::WrapUnique(new GnubbyExtensionSession(details, client_stub)); |
| 33 } |
| 34 |
| 35 } // namespace remoting |
OLD | NEW |