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

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

Issue 23257005: Move Feature and Manifest to top-level extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "chrome/common/extensions/manifest.h"
18 #include "chrome/common/extensions/permissions/api_permission.h" 17 #include "chrome/common/extensions/permissions/api_permission.h"
19 #include "chrome/common/extensions/permissions/api_permission_set.h" 18 #include "chrome/common/extensions/permissions/api_permission_set.h"
20 #include "chrome/common/extensions/permissions/permission_message.h" 19 #include "chrome/common/extensions/permissions/permission_message.h"
20 #include "extensions/common/manifest.h"
21 #include "extensions/common/url_pattern_set.h" 21 #include "extensions/common/url_pattern_set.h"
22 22
23 namespace extensions { 23 namespace extensions {
24 class Extension; 24 class Extension;
25 25
26 // The PermissionSet is an immutable class that encapsulates an 26 // The PermissionSet is an immutable class that encapsulates an
27 // extension's permissions. The class exposes set operations for combining and 27 // extension's permissions. The class exposes set operations for combining and
28 // manipulating the permissions. 28 // manipulating the permissions.
29 class PermissionSet 29 class PermissionSet
30 : public base::RefCountedThreadSafe<PermissionSet> { 30 : public base::RefCountedThreadSafe<PermissionSet> {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // TODO(jstritar): Rename to "user_script_hosts_"? 196 // TODO(jstritar): Rename to "user_script_hosts_"?
197 URLPatternSet scriptable_hosts_; 197 URLPatternSet scriptable_hosts_;
198 198
199 // The list of hosts this effectively grants access to. 199 // The list of hosts this effectively grants access to.
200 URLPatternSet effective_hosts_; 200 URLPatternSet effective_hosts_;
201 }; 201 };
202 202
203 } // namespace extensions 203 } // namespace extensions
204 204
205 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_ 205 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/mime_types_handler.cc ('k') | chrome/common/extensions/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698