Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: remoting/host/support_access_verifier.h

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SUPPORT_ACCESS_VERIFIER_H_ 5 #ifndef REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_
6 #define REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_ 6 #define REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "remoting/host/access_verifier.h" 10 #include "remoting/host/access_verifier.h"
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 // SupportAccessVerifier is used in Me2Mom scenario to verify that the 16 // SupportAccessVerifier is used in Me2Mom scenario to verify that the
17 // client knows the host secret. 17 // client knows the host secret.
18 class SupportAccessVerifier : public AccessVerifier { 18 class SupportAccessVerifier : public AccessVerifier {
19 public: 19 public:
20 SupportAccessVerifier(); 20 SupportAccessVerifier();
21 virtual ~SupportAccessVerifier(); 21 virtual ~SupportAccessVerifier();
22 22
23 const std::string& host_secret() const { return host_secret_; } 23 const std::string& host_secret() const { return host_secret_; }
24 24
25 // AccessVerifier interface. 25 // AccessVerifier interface.
26 virtual bool VerifyPermissions( 26 virtual bool VerifyPermissions(const std::string& client_jid) OVERRIDE;
27 const std::string& client_jid,
28 const std::string& encoded_client_token) OVERRIDE;
29 27
30 void OnIT2MeHostRegistered(bool successful, const std::string& support_id); 28 void OnIT2MeHostRegistered(bool successful, const std::string& support_id);
31 29
32 private: 30 private:
33 std::string host_secret_; 31 std::string host_secret_;
34 std::string support_id_; 32 std::string support_id_;
35 33
36 DISALLOW_COPY_AND_ASSIGN(SupportAccessVerifier); 34 DISALLOW_COPY_AND_ASSIGN(SupportAccessVerifier);
37 }; 35 };
38 36
39 } // namespace remoting 37 } // namespace remoting
40 38
41 #endif // REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_ 39 #endif // REMOTING_HOST_SUPPORT_ACCESS_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698