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/host/host_status_sender.h" | 5 #include "remoting/host/host_status_sender.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/stringize_macros.h" | 8 #include "base/strings/stringize_macros.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "remoting/base/constants.h" | 10 #include "remoting/base/constants.h" |
11 #include "remoting/base/logging.h" | 11 #include "remoting/base/logging.h" |
12 #include "remoting/host/server_log_entry_host.h" | 12 #include "remoting/host/server_log_entry_host.h" |
13 #include "remoting/jingle_glue/iq_sender.h" | 13 #include "remoting/signaling/iq_sender.h" |
14 #include "remoting/jingle_glue/server_log_entry.h" | 14 #include "remoting/signaling/server_log_entry.h" |
15 #include "remoting/jingle_glue/signal_strategy.h" | 15 #include "remoting/signaling/signal_strategy.h" |
16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
17 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 17 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
18 | 18 |
19 using buzz::QName; | 19 using buzz::QName; |
20 using buzz::XmlElement; | 20 using buzz::XmlElement; |
21 | 21 |
22 namespace remoting { | 22 namespace remoting { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 if (status == OFFLINE) | 154 if (status == OFFLINE) |
155 message += std::string(" ") + ExitCodeToString(exit_code); | 155 message += std::string(" ") + ExitCodeToString(exit_code); |
156 | 156 |
157 std::string signature(key_pair_->SignMessage(message)); | 157 std::string signature(key_pair_->SignMessage(message)); |
158 signature_tag->AddText(signature); | 158 signature_tag->AddText(signature); |
159 | 159 |
160 return signature_tag.Pass(); | 160 return signature_tag.Pass(); |
161 } | 161 } |
162 | 162 |
163 } // namespace remoting | 163 } // namespace remoting |
OLD | NEW |