Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: extensions/common/permissions/extensions_api_permissions.h

Issue 2379763003: Extract permission alias info from PermissionsProvider (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_COMMON_PERMISSIONS_EXTENSIONS_API_PERMISSIONS_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_EXTENSIONS_API_PERMISSIONS_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_EXTENSIONS_API_PERMISSIONS_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_EXTENSIONS_API_PERMISSIONS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/common/permissions/permissions_provider.h" 9 #include "extensions/common/permissions/permissions_provider.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class ExtensionsAPIPermissions : public PermissionsProvider { 13 class ExtensionsAPIPermissions : public PermissionsProvider {
14 public: 14 public:
15 std::vector<std::unique_ptr<APIPermissionInfo>> GetAllPermissions() 15 std::vector<std::unique_ptr<APIPermissionInfo>> GetAllPermissions()
16 const override; 16 const override;
17 std::vector<PermissionsProvider::AliasInfo> GetAllAliases() const override;
18 }; 17 };
19 18
20 } // namespace extensions 19 } // namespace extensions
21 20
22 #endif // EXTENSIONS_COMMON_PERMISSIONS_EXTENSIONS_API_PERMISSIONS_H_ 21 #endif // EXTENSIONS_COMMON_PERMISSIONS_EXTENSIONS_API_PERMISSIONS_H_
OLDNEW
« no previous file with comments | « extensions/common/extensions_aliases.cc ('k') | extensions/common/permissions/extensions_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698