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
3 // found in the LICENSE file.
5 #include "remoting/protocol/authenticator.h"
7 #include "remoting/base/constants.h"
8 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
14 const buzz::StaticQName kAuthenticationQName
= { kChromotingXmlNamespace
,
19 bool Authenticator::IsAuthenticatorMessage(const buzz::XmlElement
* message
) {
20 return message
->Name() == kAuthenticationQName
;
24 scoped_ptr
<buzz::XmlElement
> Authenticator::CreateEmptyAuthenticatorMessage() {
25 return scoped_ptr
<buzz::XmlElement
>(
26 new buzz::XmlElement(kAuthenticationQName
));
30 const buzz::XmlElement
* Authenticator::FindAuthenticatorMessage(
31 const buzz::XmlElement
* message
) {
32 return message
->FirstNamed(kAuthenticationQName
);
35 } // namespace protocol
36 } // namespace remoting