OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_INFO_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_INFO_H_ |
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_INFO_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_INFO_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <set> | 11 #include <set> |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 #include "base/callback.h" | 14 #include "base/callback.h" |
13 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
| 16 #include "base/macros.h" |
14 #include "extensions/common/permissions/api_permission.h" | 17 #include "extensions/common/permissions/api_permission.h" |
15 #include "extensions/common/permissions/api_permission_set.h" | 18 #include "extensions/common/permissions/api_permission_set.h" |
16 #include "extensions/common/permissions/permissions_provider.h" | 19 #include "extensions/common/permissions/permissions_provider.h" |
17 | 20 |
18 namespace extensions { | 21 namespace extensions { |
19 | 22 |
20 // A global object that holds the extension permission instances and provides | 23 // A global object that holds the extension permission instances and provides |
21 // methods for accessing them. | 24 // methods for accessing them. |
22 class PermissionsInfo { | 25 class PermissionsInfo { |
23 public: | 26 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 NameMap name_map_; | 73 NameMap name_map_; |
71 | 74 |
72 size_t permission_count_; | 75 size_t permission_count_; |
73 | 76 |
74 DISALLOW_COPY_AND_ASSIGN(PermissionsInfo); | 77 DISALLOW_COPY_AND_ASSIGN(PermissionsInfo); |
75 }; | 78 }; |
76 | 79 |
77 } // namespace extensions | 80 } // namespace extensions |
78 | 81 |
79 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_INFO_H_ | 82 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSIONS_INFO_H_ |
OLD | NEW |