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

Side by Side Diff: remoting/host/self_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_SELF_ACCESS_VERIFIER_H_ 5 #ifndef REMOTING_HOST_SELF_ACCESS_VERIFIER_H_
6 #define REMOTING_HOST_SELF_ACCESS_VERIFIER_H_ 6 #define REMOTING_HOST_SELF_ACCESS_VERIFIER_H_
7 7
8 #include "remoting/host/access_verifier.h" 8 #include "remoting/host/access_verifier.h"
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 15 matching lines...) Expand all
26 // TODO(sergeyu): Remove the bare-JID check, and instead ask the directory to 26 // TODO(sergeyu): Remove the bare-JID check, and instead ask the directory to
27 // perform user authorization. 27 // perform user authorization.
28 class SelfAccessVerifier : public AccessVerifier { 28 class SelfAccessVerifier : public AccessVerifier {
29 public: 29 public:
30 SelfAccessVerifier(); 30 SelfAccessVerifier();
31 virtual ~SelfAccessVerifier(); 31 virtual ~SelfAccessVerifier();
32 32
33 bool Init(HostConfig* config); 33 bool Init(HostConfig* config);
34 34
35 // AccessVerifier interface. 35 // AccessVerifier interface.
36 virtual bool VerifyPermissions( 36 virtual bool VerifyPermissions(const std::string& client_jid) OVERRIDE;
37 const std::string& client_jid,
38 const std::string& encoded_client_token) OVERRIDE;
39 37
40 private: 38 private:
41 bool DecodeClientAuthToken(const std::string& encoded_client_token,
42 protocol::ClientAuthToken* client_token);
43
44 std::string host_jid_prefix_; 39 std::string host_jid_prefix_;
45 bool initialized_; 40 bool initialized_;
46 41
47 DISALLOW_COPY_AND_ASSIGN(SelfAccessVerifier); 42 DISALLOW_COPY_AND_ASSIGN(SelfAccessVerifier);
48 }; 43 };
49 44
50 } // namespace remoting 45 } // namespace remoting
51 46
52 #endif // REMOTING_HOST_SELF_ACCESS_VERIFIER_H_ 47 #endif // REMOTING_HOST_SELF_ACCESS_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698