| 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_SUPPORT_ACCESS_VERIFIER_H_ | |
| 6 #define REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "remoting/host/access_verifier.h" | |
| 11 | |
| 12 #include "base/compiler_specific.h" | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 // SupportAccessVerifier is used in Me2Mom scenario to verify that the | |
| 17 // client knows the host secret. | |
| 18 class SupportAccessVerifier : public AccessVerifier { | |
| 19 public: | |
| 20 SupportAccessVerifier(); | |
| 21 virtual ~SupportAccessVerifier(); | |
| 22 | |
| 23 const std::string& host_secret() const { return host_secret_; } | |
| 24 | |
| 25 // AccessVerifier interface. | |
| 26 virtual bool VerifyPermissions( | |
| 27 const std::string& client_jid, | |
| 28 const std::string& encoded_client_token) OVERRIDE; | |
| 29 | |
| 30 void OnIT2MeHostRegistered(bool successful, const std::string& support_id); | |
| 31 | |
| 32 private: | |
| 33 std::string host_secret_; | |
| 34 std::string support_id_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(SupportAccessVerifier); | |
| 37 }; | |
| 38 | |
| 39 } // namespace remoting | |
| 40 | |
| 41 #endif // REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_ | |
| OLD | NEW |