blob: 66f81b7963e716d74db21f10f0428a9c3fe39956 [file] [log] [blame]
[email protected]a5d181f2013-04-19 14:55:371// Copyright 2013 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_BASE_CAPABILITIES_H_
6#define REMOTING_BASE_CAPABILITIES_H_
7
8#include <string>
9
[email protected]a5d181f2013-04-19 14:55:3710
11namespace remoting {
12
13// Returns true if |capabilities| contain capability |key|.
14bool HasCapability(const std::string& capabilities, const std::string& key);
15
16// Returns a set of capabilities contained in both |client_capabilities| and
17// |host_capabilities| sets.
18std::string IntersectCapabilities(const std::string& client_capabilities,
19 const std::string& host_capabilities);
20
21} // namespace remoting
22
23#endif // REMOTING_BASE_CAPABILITIES_H_