summaryrefslogtreecommitdiffstats
path: root/remoting/base/capabilities.h
blob: 66f81b7963e716d74db21f10f0428a9c3fe39956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2013 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_BASE_CAPABILITIES_H_
#define REMOTING_BASE_CAPABILITIES_H_

#include <string>


namespace remoting {

// Returns true if |capabilities| contain capability |key|.
bool HasCapability(const std::string& capabilities, const std::string& key);

// Returns a set of capabilities contained in both |client_capabilities| and
// |host_capabilities| sets.
std::string IntersectCapabilities(const std::string& client_capabilities,
                                  const std::string& host_capabilities);

}  // namespace remoting

#endif  // REMOTING_BASE_CAPABILITIES_H_