| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/register_support_host_request.h" | 5 #include "remoting/host/register_support_host_request.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 XmlElement* support_id = new XmlElement( | 122 XmlElement* support_id = new XmlElement( |
| 123 QName(kChromotingXmlNamespace, "support-id")); | 123 QName(kChromotingXmlNamespace, "support-id")); |
| 124 support_id->AddText(kSupportId); | 124 support_id->AddText(kSupportId); |
| 125 result->AddElement(support_id); | 125 result->AddElement(support_id); |
| 126 | 126 |
| 127 XmlElement* support_id_lifetime = new XmlElement( | 127 XmlElement* support_id_lifetime = new XmlElement( |
| 128 QName(kChromotingXmlNamespace, "support-id-lifetime")); | 128 QName(kChromotingXmlNamespace, "support-id-lifetime")); |
| 129 support_id_lifetime->AddText(kSupportIdLifetime); | 129 support_id_lifetime->AddText(kSupportIdLifetime); |
| 130 result->AddElement(support_id_lifetime); | 130 result->AddElement(support_id_lifetime); |
| 131 | 131 |
| 132 iq_request->callback()->Run(response.get()); | 132 iq_request->callback().Run(response.get()); |
| 133 message_loop_.RunAllPending(); | 133 message_loop_.RunAllPending(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace remoting | 136 } // namespace remoting |
| OLD | NEW |