OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "remoting/base/constants.h" |
| 6 #include "remoting/protocol/session_plugin.h" |
| 7 |
| 8 using buzz::QName; |
| 9 using buzz::XmlElement; |
| 10 |
| 11 namespace remoting { |
| 12 namespace protocol { |
| 13 |
| 14 SessionPlugin::SessionPlugin() = default; |
| 15 |
| 16 SessionPlugin::~SessionPlugin() = default; |
| 17 |
| 18 // static |
| 19 const XmlElement* SessionPlugin::FindAttachments(const buzz::XmlElement& tag) { |
| 20 return tag.FirstNamed(QName(kChromotingXmlNamespace, "attachments")); |
| 21 } |
| 22 |
| 23 // static |
| 24 std::unique_ptr<XmlElement> SessionPlugin::NewAttachments() { |
| 25 return std::unique_ptr<XmlElement>(new XmlElement( |
| 26 QName(kChromotingXmlNamespace, "attachments"))); |
| 27 } |
| 28 |
| 29 } // namespace protocol |
| 30 } // namespace remoting |
OLD | NEW |