OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/protocol/pairing_registry.h" | 5 #include "remoting/protocol/pairing_registry.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "crypto/random.h" | 10 #include "crypto/random.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 DCHECK(CalledOnValidThread()); | 49 DCHECK(CalledOnValidThread()); |
50 | 50 |
51 std::string result; | 51 std::string result; |
52 PairedClients::const_iterator i = paired_clients_.find(client_id); | 52 PairedClients::const_iterator i = paired_clients_.find(client_id); |
53 if (i != paired_clients_.end()) { | 53 if (i != paired_clients_.end()) { |
54 result = i->second.shared_secret; | 54 result = i->second.shared_secret; |
55 } | 55 } |
56 return result; | 56 return result; |
57 } | 57 } |
58 | 58 |
| 59 void NotImplementedPairingRegistryDelegate::Save( |
| 60 const PairingRegistry::PairedClients& paired_clients) { |
| 61 NOTIMPLEMENTED(); |
| 62 }; |
| 63 |
59 } // namespace protocol | 64 } // namespace protocol |
60 } // namespace remoting | 65 } // namespace remoting |
OLD | NEW |