Chromium Code Reviews| 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 #ifndef REMOTING_HOST_ACCESS_VERIFIER_H_ | 5 #ifndef REMOTING_HOST_ACCESS_VERIFIER_H_ |
| 6 #define REMOTING_HOST_ACCESS_VERIFIER_H_ | 6 #define REMOTING_HOST_ACCESS_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 // AccessVerifier is used by ChromotingHost to verify that access to | 14 // AccessVerifier is used by ChromotingHost to verify that access to |
| 15 // the host. There are two implementations: SelfAccessVerifier is used | 15 // the host. There are two implementations: SelfAccessVerifier is used |
| 16 // in the Me2Me scenario, SupportAccessVerifier is used for Me2Mom. | 16 // in the Me2Me scenario, SupportAccessVerifier is used for Me2Mom. |
|
Wez
2011/11/23 01:23:04
Presumably SupportAccessVerifier is no longer requ
| |
| 17 class AccessVerifier { | 17 class AccessVerifier { |
|
Wez
2011/11/23 01:23:04
Why do we still need this interface? Can't we app
Sergey Ulanov
2011/11/23 21:18:46
We may still need something like it later, e.g. fo
| |
| 18 public: | 18 public: |
| 19 AccessVerifier() { } | 19 AccessVerifier() { } |
| 20 virtual ~AccessVerifier() { } | 20 virtual ~AccessVerifier() { } |
| 21 | 21 |
| 22 virtual bool VerifyPermissions(const std::string& client_jid, | 22 virtual bool VerifyPermissions(const std::string& client_jid) = 0; |
|
Wez
2011/11/23 01:23:04
Do we want the |client_jid|, or the user's GAIA Id
| |
| 23 const std::string& encoded_client_token) = 0; | |
| 24 }; | 23 }; |
| 25 | 24 |
| 26 } // namespace remoting | 25 } // namespace remoting |
| 27 | 26 |
| 28 #endif // REMOTING_HOST_ACCESS_VERIFIER_H_ | 27 #endif // REMOTING_HOST_ACCESS_VERIFIER_H_ |
| OLD | NEW |