| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "remoting/host/user_authenticator_fake.h" | 5 #include "remoting/host/user_authenticator.h" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" |
| 6 | 11 |
| 7 namespace remoting { | 12 namespace remoting { |
| 8 | 13 |
| 14 namespace { |
| 15 |
| 16 class UserAuthenticatorWin : public UserAuthenticator { |
| 17 public: |
| 18 UserAuthenticatorWin() {} |
| 19 virtual ~UserAuthenticatorWin() {} |
| 20 |
| 21 virtual bool Authenticate(const std::string& username, |
| 22 const std::string& password); |
| 23 |
| 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(UserAuthenticatorWin); |
| 26 }; |
| 27 |
| 28 bool UserAuthenticatorWin::Authenticate(const std::string& username, |
| 29 const std::string& password) { |
| 30 NOTIMPLEMENTED(); |
| 31 return true; |
| 32 } |
| 33 |
| 34 } // namespace |
| 35 |
| 9 // static | 36 // static |
| 10 UserAuthenticator* UserAuthenticator::Create() { | 37 UserAuthenticator* UserAuthenticator::Create() { |
| 11 return new UserAuthenticatorFake(); | 38 return new UserAuthenticatorWin(); |
| 12 } | 39 } |
| 13 | 40 |
| 14 } // namespace remoting | 41 } // namespace remoting |
| OLD | NEW |