Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: chrome/common/extensions/permissions/permission_message_util.h

Issue 201203006: Move basic API permissions code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_
7
8 #include <set>
9 #include <string>
10
11 namespace extensions {
12 class PermissionMessage;
13 class PermissionSet;
14 class URLPatternSet;
15 }
16
17 namespace permission_message_util {
18
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);
23
24 std::set<std::string> GetDistinctHosts(
25 const extensions::URLPatternSet& host_patterns,
26 bool include_rcd,
27 bool exclude_file_scheme);
28
29 } // namespace permission_message_util
30
31 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698