Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / common / permissions / permission_message_util.h
blob410e1a2816696ff4afa704d719211ddc3d0ccd1c
1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_
8 #include <set>
9 #include <string>
11 namespace extensions {
12 class PermissionMessage;
13 class PermissionSet;
14 class URLPatternSet;
17 namespace permission_message_util {
19 // Creates the corresponding permission message for a list of hosts.
20 // The messages change depending on what hosts are present.
21 extensions::PermissionMessage CreateFromHostList(
22 const std::set<std::string>& hosts);
24 std::set<std::string> GetDistinctHosts(
25 const extensions::URLPatternSet& host_patterns,
26 bool include_rcd,
27 bool exclude_file_scheme);
29 } // namespace permission_message_util
31 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_