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

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

Issue 884903003: [Extensions] Clean up some Permission[sData|Set] includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 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 <map>
9 #include <set> 8 #include <set>
10 #include <string> 9 #include <string>
11 #include <vector>
12 10
13 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
15 #include "base/memory/singleton.h"
16 #include "base/strings/string16.h"
17 #include "extensions/common/manifest.h"
18 #include "extensions/common/permissions/api_permission.h" 13 #include "extensions/common/permissions/api_permission.h"
19 #include "extensions/common/permissions/api_permission_set.h" 14 #include "extensions/common/permissions/api_permission_set.h"
20 #include "extensions/common/permissions/manifest_permission.h" 15 #include "extensions/common/permissions/manifest_permission.h"
21 #include "extensions/common/permissions/manifest_permission_set.h" 16 #include "extensions/common/permissions/manifest_permission_set.h"
22 #include "extensions/common/url_pattern_set.h" 17 #include "extensions/common/url_pattern_set.h"
23 18
24 namespace extensions { 19 namespace extensions {
25 class Extension;
26 20
27 // The PermissionSet is an immutable class that encapsulates an 21 // The PermissionSet is an immutable class that encapsulates an
28 // extension's permissions. The class exposes set operations for combining and 22 // extension's permissions. The class exposes set operations for combining and
29 // manipulating the permissions. 23 // manipulating the permissions.
30 class PermissionSet 24 class PermissionSet
31 : public base::RefCountedThreadSafe<PermissionSet> { 25 : public base::RefCountedThreadSafe<PermissionSet> {
32 public: 26 public:
33 // Creates an empty permission set (e.g. default permissions). 27 // Creates an empty permission set (e.g. default permissions).
34 PermissionSet(); 28 PermissionSet();
35 29
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 }; 156 };
163 // Whether or not this permission set includes access to so many origins, we 157 // Whether or not this permission set includes access to so many origins, we
164 // should treat it as all_hosts for warning purposes. 158 // should treat it as all_hosts for warning purposes.
165 // Lazily initialized (and therefore mutable). 159 // Lazily initialized (and therefore mutable).
166 mutable ShouldWarnAllHostsType should_warn_all_hosts_; 160 mutable ShouldWarnAllHostsType should_warn_all_hosts_;
167 }; 161 };
168 162
169 } // namespace extensions 163 } // namespace extensions
170 164
171 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_ 165 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/permission_message_combinations_unittest.cc ('k') | extensions/common/permissions/permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698