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

Unified Diff: remoting/host/security_key/gnubby_extension.cc

Issue 2170563002: Revert of Renaming Gnubby and RemoteSecurityKey files/classes/members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/security_key/gnubby_extension.cc
diff --git a/remoting/host/security_key/gnubby_extension.cc b/remoting/host/security_key/gnubby_extension.cc
new file mode 100644
index 0000000000000000000000000000000000000000..885ed3045d4f24b52c67547dbde152b305d0627e
--- /dev/null
+++ b/remoting/host/security_key/gnubby_extension.cc
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/security_key/gnubby_extension.h"
+
+#include "base/memory/ptr_util.h"
+#include "remoting/host/security_key/gnubby_extension_session.h"
+
+namespace {
+// TODO(joedow): Update this once clients support sending a gnubby capabililty.
+// Tracked via: crbug.com/587485
+const char kCapability[] = "";
+}
+
+namespace remoting {
+
+GnubbyExtension::GnubbyExtension() {}
+
+GnubbyExtension::~GnubbyExtension() {}
+
+std::string GnubbyExtension::capability() const {
+ return kCapability;
+}
+
+std::unique_ptr<HostExtensionSession> GnubbyExtension::CreateExtensionSession(
+ ClientSessionDetails* details,
+ protocol::ClientStub* client_stub) {
+ // TODO(joedow): Update this mechanism to allow for multiple sessions. The
+ // extension will only send messages through the initial
+ // |client_stub| and |details| with the current design.
+ return base::WrapUnique(new GnubbyExtensionSession(details, client_stub));
+}
+
+} // namespace remoting
« no previous file with comments | « remoting/host/security_key/gnubby_extension.h ('k') | remoting/host/security_key/gnubby_extension_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698