summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/permissions/chrome_scheme_hosts.h
blob: 8d2a6dd84e6f1634831306944e7a996ccdb82d6a (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
25
26
27
// 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_SCHEME_HOSTS_H_
#define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_SCHEME_HOSTS_H_

#include "extensions/common/permissions/permission_message.h"

// Chrome-specific special case handling for permissions on hosts in
// the chrome:// scheme.
namespace extensions {

class APIPermissionSet;
class Extension;
class URLPatternSet;

PermissionMessages GetChromeSchemePermissionWarnings(
    const URLPatternSet& hosts);

URLPatternSet GetPermittedChromeSchemeHosts(
    const Extension* extension,
    const APIPermissionSet& permissions);

}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_SCHEME_HOSTS_H_