Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_ | |
| 6 #define REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_ | |
| 7 | |
| 8 #include "remoting/protocol/authenticator.h" | |
|
Wez
2012/10/26 03:25:43
nit: Blank line between this include and the next.
Jamie
2012/10/26 17:53:30
Done.
| |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 | |
| 11 // PamAuthorizationFactory abuses the AuthenticatorFactory interface to apply | |
| 12 // PAM-based authorization on top of some underlying authentication scheme. | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 class PamAuthorizationFactory : public protocol::AuthenticatorFactory { | |
| 17 public: | |
| 18 PamAuthorizationFactory( | |
| 19 scoped_ptr<protocol::AuthenticatorFactory> underlying); | |
| 20 | |
| 21 virtual scoped_ptr<protocol::Authenticator> CreateAuthenticator( | |
| 22 const std::string& local_jid, | |
| 23 const std::string& remote_jid, | |
| 24 const buzz::XmlElement* first_message) OVERRIDE; | |
| 25 | |
| 26 private: | |
| 27 scoped_ptr<protocol::AuthenticatorFactory> underlying_; | |
| 28 }; | |
| 29 | |
| 30 } // namespace remoting | |
| 31 | |
| 32 #endif | |
| OLD | NEW |