| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef REMOTING_PROTOCOL_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_AUTHENTICATOR_H_ |
| 6 #define REMOTING_PROTOCOL_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_AUTHENTICATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Called when session-initiate stanza is received to create | 104 // Called when session-initiate stanza is received to create |
| 105 // authenticator for the new session. |first_message| specifies | 105 // authenticator for the new session. |first_message| specifies |
| 106 // authentication part of the session-initiate stanza so that | 106 // authentication part of the session-initiate stanza so that |
| 107 // appropriate type of Authenticator can be chosen for the session | 107 // appropriate type of Authenticator can be chosen for the session |
| 108 // (useful when multiple authenticators is supported). Returns NULL | 108 // (useful when multiple authenticators is supported). Returns NULL |
| 109 // if the |first_message| is invalid and the session should be | 109 // if the |first_message| is invalid and the session should be |
| 110 // rejected. ProcessMessage() should be called with |first_message| | 110 // rejected. ProcessMessage() should be called with |first_message| |
| 111 // for the result of this method. | 111 // for the result of this method. |
| 112 virtual scoped_ptr<Authenticator> CreateAuthenticator( | 112 virtual scoped_ptr<Authenticator> CreateAuthenticator( |
| 113 const std::string& local_jid, | |
| 114 const std::string& remote_jid, | 113 const std::string& remote_jid, |
| 115 const buzz::XmlElement* first_message) = 0; | 114 const buzz::XmlElement* first_message) = 0; |
| 116 }; | 115 }; |
| 117 | 116 |
| 118 } // namespace protocol | 117 } // namespace protocol |
| 119 } // namespace remoting | 118 } // namespace remoting |
| 120 | 119 |
| 121 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_H_ | 120 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_H_ |
| OLD | NEW |