| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef REMOTING_HOST_ACCESS_VERIFIER_H_ | |
| 6 #define REMOTING_HOST_ACCESS_VERIFIER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 | |
| 12 namespace remoting { | |
| 13 | |
| 14 // AccessVerifier is used by ChromotingHost to verify that access to | |
| 15 // the host. There are two implementations: SelfAccessVerifier is used | |
| 16 // in the Me2Me scenario, SupportAccessVerifier is used for Me2Mom. | |
| 17 class AccessVerifier { | |
| 18 public: | |
| 19 AccessVerifier() { } | |
| 20 virtual ~AccessVerifier() { } | |
| 21 | |
| 22 virtual bool VerifyPermissions(const std::string& client_jid, | |
| 23 const std::string& encoded_client_token) = 0; | |
| 24 }; | |
| 25 | |
| 26 } // namespace remoting | |
| 27 | |
| 28 #endif // REMOTING_HOST_ACCESS_VERIFIER_H_ | |
| OLD | NEW |