Home | History | Annotate | Download | only in permissions
      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_CHROME_SCHEME_HOSTS_H_
      6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_SCHEME_HOSTS_H_
      7 
      8 #include "chrome/common/extensions/permissions/permission_message.h"
      9 
     10 // Chrome-specific special case handling for permissions on hosts in
     11 // the chrome:// scheme.
     12 namespace extensions {
     13 
     14 class APIPermissionSet;
     15 class Extension;
     16 class URLPatternSet;
     17 
     18 PermissionMessages GetChromeSchemePermissionWarnings(
     19     const URLPatternSet& hosts);
     20 
     21 URLPatternSet GetPermittedChromeSchemeHosts(
     22     const Extension* extension,
     23     const APIPermissionSet& permissions);
     24 
     25 }  // namespace extensions
     26 
     27 #endif  // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_SCHEME_HOSTS_H_
     28