| 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_PERMISSION_SET_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_ |
| 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "extensions/common/permissions/api_permission.h" | 14 #include "extensions/common/permissions/api_permission.h" |
| 14 #include "extensions/common/permissions/api_permission_set.h" | 15 #include "extensions/common/permissions/api_permission_set.h" |
| 15 #include "extensions/common/permissions/manifest_permission.h" | 16 #include "extensions/common/permissions/manifest_permission.h" |
| 16 #include "extensions/common/permissions/manifest_permission_set.h" | 17 #include "extensions/common/permissions/manifest_permission_set.h" |
| 17 #include "extensions/common/url_pattern_set.h" | 18 #include "extensions/common/url_pattern_set.h" |
| 18 | 19 |
| 19 namespace extensions { | 20 namespace extensions { |
| 20 | 21 |
| 21 // The PermissionSet is an immutable class that encapsulates an | 22 // The PermissionSet is an immutable class that encapsulates an |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Cache whether this set implies access to all hosts, because it's | 166 // Cache whether this set implies access to all hosts, because it's |
| 166 // non-trivial to compute (lazily initialized). | 167 // non-trivial to compute (lazily initialized). |
| 167 mutable ShouldWarnAllHostsType should_warn_all_hosts_; | 168 mutable ShouldWarnAllHostsType should_warn_all_hosts_; |
| 168 | 169 |
| 169 DISALLOW_ASSIGN(PermissionSet); | 170 DISALLOW_ASSIGN(PermissionSet); |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 } // namespace extensions | 173 } // namespace extensions |
| 173 | 174 |
| 174 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_ | 175 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_ |
| OLD | NEW |