| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "extensions/common/permissions/permissions_provider.h" | 11 #include "extensions/common/permissions/permissions_provider.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 // Registers the permissions used in Chrome with the PermissionsInfo global. | 15 // Registers the permissions used in Chrome with the PermissionsInfo global. |
| 16 class ChromeAPIPermissions : public PermissionsProvider { | 16 class ChromeAPIPermissions : public PermissionsProvider { |
| 17 public: | 17 public: |
| 18 std::vector<std::unique_ptr<APIPermissionInfo>> GetAllPermissions() | 18 std::vector<std::unique_ptr<APIPermissionInfo>> GetAllPermissions() |
| 19 const override; | 19 const override; |
| 20 std::vector<PermissionsProvider::AliasInfo> GetAllAliases() const override; | |
| 21 }; | 20 }; |
| 22 | 21 |
| 23 } // namespace extensions | 22 } // namespace extensions |
| 24 | 23 |
| 25 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ | 24 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ |
| OLD | NEW |