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

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

Issue 3303001: Basic user access check for chromoting host. (Closed)
Patch Set: - Created 10 years, 3 months 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
« no previous file with comments | « no previous file | remoting/host/access_verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 class HostConfig;
15
16 // AccessVerifier is used by to verify that the client has access to the host.
17 // Currently it just checks that host and client have the same bare JID.
18 //
19 // TODO(sergeyu): AccessVerifier should query directory to verify user
20 // permissions.
21 class AccessVerifier {
22 public:
23 AccessVerifier();
24 bool Init(HostConfig* config);
25 bool VerifyPermissions(const std::string& client_jid);
26
27 private:
28 std::string host_jid_prefix_;
29 bool initialized_;
30
31 DISALLOW_COPY_AND_ASSIGN(AccessVerifier);
32 };
33
34 } // namespace remoting
35
36 #endif // REMOTING_HOST_ACCESS_VERIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/access_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698