| Index: remoting/protocol/authenticator.h
|
| diff --git a/remoting/protocol/authenticator.h b/remoting/protocol/authenticator.h
|
| index b79fe78a7ca4fefcb86b646775f7ec55fe2908d4..ac87dd0dd51a415f2fe7e7b8fb609abede5c098a 100644
|
| --- a/remoting/protocol/authenticator.h
|
| +++ b/remoting/protocol/authenticator.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| namespace buzz {
|
| class XmlElement;
|
| } // namespace buzz
|
| @@ -57,7 +59,7 @@ class Authenticator {
|
| static bool IsAuthenticatorMessage(const buzz::XmlElement* message);
|
|
|
| // Creates an empty Authenticator message, owned by the caller.
|
| - static buzz::XmlElement* CreateEmptyAuthenticatorMessage();
|
| + static scoped_ptr<buzz::XmlElement> CreateEmptyAuthenticatorMessage();
|
|
|
| // Finds Authenticator message among child elements of |message|, or
|
| // returns NULL otherwise.
|
| @@ -77,12 +79,12 @@ class Authenticator {
|
|
|
| // Must be called when in MESSAGE_READY state. Returns next
|
| // authentication message that needs to be sent to the peer.
|
| - virtual buzz::XmlElement* GetNextMessage() = 0;
|
| + virtual scoped_ptr<buzz::XmlElement> GetNextMessage() = 0;
|
|
|
| - // Creates new authenticator for a channel. Caller must take
|
| - // ownership of the result. Can be called only in the ACCEPTED
|
| - // state.
|
| - virtual ChannelAuthenticator* CreateChannelAuthenticator() const = 0;
|
| + // Creates new authenticator for a channel. Can be called only in
|
| + // the ACCEPTED state.
|
| + virtual scoped_ptr<ChannelAuthenticator>
|
| + CreateChannelAuthenticator() const = 0;
|
| };
|
|
|
| // Factory for Authenticator instances.
|
|
|