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. 4 5#ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ 6#define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ 7 8#include <vector> 9 10#include "base/compiler_specific.h" 11#include "extensions/common/permissions/permissions_provider.h" 12 13namespace extensions { 14 15// Registers the permissions used in Chrome with the PermissionsInfo global. 16class ChromeAPIPermissions : public PermissionsProvider { 17 public: 18 virtual std::vector<APIPermissionInfo*> GetAllPermissions() const OVERRIDE; 19 virtual std::vector<PermissionsProvider::AliasInfo> GetAllAliases() const 20 OVERRIDE; 21}; 22 23} // namespace extensions 24 25#endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ 26