1 // Copyright (c) 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.
5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_
10 #include "base/compiler_specific.h"
11 #include "extensions/common/permissions/permissions_provider.h"
13 namespace extensions
{
15 // Registers the permissions used in Chrome with the PermissionsInfo global.
16 class ChromeAPIPermissions
: public PermissionsProvider
{
18 std::vector
<APIPermissionInfo
*> GetAllPermissions() const override
;
19 std::vector
<PermissionsProvider::AliasInfo
> GetAllAliases() const override
;
22 } // namespace extensions
24 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_