summaryrefslogtreecommitdiffstats
path: root/remoting/base/capabilities.h
blob: 0a285be5933daa7c3767ca9696bdef4426f1e753 (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
// 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>

#include "base/basictypes.h"

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_