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

Unified Diff: remoting/host/security_key/remote_security_key_ipc_constants.h

Issue 2167473003: 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/remote_security_key_ipc_constants.h
diff --git a/remoting/host/security_key/remote_security_key_ipc_constants.h b/remoting/host/security_key/remote_security_key_ipc_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..2f33aa35eb0d721ce4fdb00c2533a1b93078649e
--- /dev/null
+++ b/remoting/host/security_key/remote_security_key_ipc_constants.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_
+#define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_
+
+#include <string>
+
+namespace remoting {
+
+// Used to indicate an error during remote security key forwarding session.
+extern const char kRemoteSecurityKeyConnectionError[];
+
+// Returns the name of the well-known IPC server channel used to initiate a
+// remote security key forwarding session.
+const std::string& GetRemoteSecurityKeyIpcChannelName();
+
+// Sets the name of the well-known IPC server channel for testing purposes.
+void SetRemoteSecurityKeyIpcChannelNameForTest(const std::string& channel_name);
+
+// Returns a path appropriate for placing a channel name. Without this path
+// prefix, we may not have permission on linux to bind(2) a socket to a name in
+// the current directory.
+std::string GetChannelNamePathPrefixForTest();
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698