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