summaryrefslogtreecommitdiffstats
path: root/remoting/host/access_verifier.h
blob: 00a8d66865c75b7bd14fa5d7f764968720a1f9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_HOST_ACCESS_VERIFIER_H_
#define REMOTING_HOST_ACCESS_VERIFIER_H_

#include <string>

#include "base/basictypes.h"

namespace remoting {

// AccessVerifier is used by ChromotingHost to verify that access to
// the host. There are two implementations: SelfAccessVerifier is used
// in the Me2Me scenario, SupportAccessVerifier is used for Me2Mom.
class AccessVerifier {
 public:
  AccessVerifier() { }
  virtual ~AccessVerifier() { }

  virtual bool VerifyPermissions(const std::string& client_jid,
                                 const std::string& encoded_client_token) = 0;
};

}  // namespace remoting

#endif  // REMOTING_HOST_ACCESS_VERIFIER_H_