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

Unified Diff: remoting/host/pin_hash.h

Issue 10243011: [Chromoting] Factor out common code for pin hashing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | remoting/host/pin_hash.cc » ('j') | remoting/host/pin_hash.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pin_hash.h
diff --git a/remoting/host/pin_hash.h b/remoting/host/pin_hash.h
new file mode 100644
index 0000000000000000000000000000000000000000..5fd3c813e0435019d5dc36393c8b74b4899cb66c
--- /dev/null
+++ b/remoting/host/pin_hash.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2012 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_PIN_HASH_H_
+#define REMOTING_HOST_PIN_HASH_H_
+
+#include <string>
+
+namespace remoting {
+
+// Hashes a host ID and a PIN.
Wez 2012/04/30 23:13:57 Can we reword to indicate that it specifically pro
simonmorris 2012/05/01 00:25:55 Done.
+std::string GetPinHash(const std::string& host_id, const std::string& pin);
Wez 2012/04/30 23:13:57 nit: GetPinHash -> MakePinHash() / MakeHostPinHash
simonmorris 2012/05/01 00:25:55 Done.
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_PIN_HASH_
« no previous file with comments | « no previous file | remoting/host/pin_hash.cc » ('j') | remoting/host/pin_hash.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698