OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/host/heartbeat_sender.h" | 5 #include "remoting/host/heartbeat_sender.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "remoting/base/constants.h" | 15 #include "remoting/base/constants.h" |
16 #include "remoting/host/constants.h" | 16 #include "remoting/host/constants.h" |
17 #include "remoting/host/server_log_entry.h" | 17 #include "remoting/host/server_log_entry.h" |
18 #include "remoting/jingle_glue/iq_sender.h" | 18 #include "remoting/jingle_glue/iq_sender.h" |
19 #include "remoting/jingle_glue/jingle_thread.h" | |
20 #include "remoting/jingle_glue/signal_strategy.h" | 19 #include "remoting/jingle_glue/signal_strategy.h" |
21 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 20 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
22 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 21 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
23 | 22 |
24 using buzz::QName; | 23 using buzz::QName; |
25 using buzz::XmlElement; | 24 using buzz::XmlElement; |
26 | 25 |
27 namespace remoting { | 26 namespace remoting { |
28 | 27 |
29 namespace { | 28 namespace { |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 251 |
253 std::string message = signal_strategy_->GetLocalJid() + ' ' + | 252 std::string message = signal_strategy_->GetLocalJid() + ' ' + |
254 base::IntToString(sequence_id_); | 253 base::IntToString(sequence_id_); |
255 std::string signature(key_pair_->GetSignature(message)); | 254 std::string signature(key_pair_->GetSignature(message)); |
256 signature_tag->AddText(signature); | 255 signature_tag->AddText(signature); |
257 | 256 |
258 return signature_tag.Pass(); | 257 return signature_tag.Pass(); |
259 } | 258 } |
260 | 259 |
261 } // namespace remoting | 260 } // namespace remoting |
OLD | NEW |