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

Unified Diff: remoting/protocol/pairing_registry.cc

Issue 15709005: Linux pairing registry delegate implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/protocol/pairing_registry.cc
diff --git a/remoting/protocol/pairing_registry.cc b/remoting/protocol/pairing_registry.cc
index 583d84b4e5fc640fba4fe64e23ef9db08904c3da..fb763ed89f4581dc50a759fe95378f39c38eedff 100644
--- a/remoting/protocol/pairing_registry.cc
+++ b/remoting/protocol/pairing_registry.cc
@@ -12,6 +12,13 @@
namespace remoting {
namespace protocol {
+bool PairingRegistry::Pairing::operator==(const Pairing& other) const {
+ return created_time == other.created_time &&
+ client_id == other.client_id &&
+ client_name == other.client_name &&
+ shared_secret == other.shared_secret;
+}
+
// How many bytes of random data to use for the client id and shared secret.
const int kKeySize = 16;
@@ -30,6 +37,7 @@ const PairingRegistry::Pairing& PairingRegistry::CreatePairing(
DCHECK(CalledOnValidThread());
Pairing result;
+ result.created_time = base::Time::Now();
result.client_name = client_name;
result.client_id = base::GenerateGUID();
@@ -61,5 +69,11 @@ void NotImplementedPairingRegistryDelegate::Save(
NOTIMPLEMENTED();
};
+PairingRegistry::PairedClients
+NotImplementedPairingRegistryDelegate::LoadOnCurrentThread() {
+ NOTIMPLEMENTED();
+ return PairingRegistry::PairedClients();
+}
+
} // namespace protocol
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698