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 virtual std::vector<APIPermissionInfo*> GetAllPermissions() const OVERRIDE; | 18 virtual std::vector<APIPermissionInfo*> GetAllPermissions() const override; |
19 virtual std::vector<PermissionsProvider::AliasInfo> GetAllAliases() const | 19 virtual std::vector<PermissionsProvider::AliasInfo> GetAllAliases() const |
20 OVERRIDE; | 20 override; |
21 }; | 21 }; |
22 | 22 |
23 } // namespace extensions | 23 } // namespace extensions |
24 | 24 |
25 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ | 25 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_API_PERMISSIONS_H_ |
OLD | NEW |