OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_PERMISSION_SET_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // The ExtensionAPIPermission is an immutable class that describes a single | 84 // The ExtensionAPIPermission is an immutable class that describes a single |
85 // named permission (API permission). | 85 // named permission (API permission). |
86 class ExtensionAPIPermission { | 86 class ExtensionAPIPermission { |
87 public: | 87 public: |
88 enum ID { | 88 enum ID { |
89 // Error codes. | 89 // Error codes. |
90 kInvalid = -2, | 90 kInvalid = -2, |
91 kUnknown = -1, | 91 kUnknown = -1, |
92 | 92 |
93 // Real permissions. | 93 // Real permissions. |
| 94 kAppNotifications, |
94 kBackground, | 95 kBackground, |
95 kBookmark, | 96 kBookmark, |
96 kChromeAuthPrivate, | 97 kChromeAuthPrivate, |
97 kChromePrivate, | 98 kChromePrivate, |
98 kChromeosInfoPrivate, | 99 kChromeosInfoPrivate, |
99 kClipboardRead, | 100 kClipboardRead, |
100 kClipboardWrite, | 101 kClipboardWrite, |
101 kContentSettings, | 102 kContentSettings, |
102 kContextMenus, | 103 kContextMenus, |
103 kCookie, | 104 kCookie, |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 463 |
463 // The list of hosts that can be scripted by content scripts. | 464 // The list of hosts that can be scripted by content scripts. |
464 // TODO(jstritar): Rename to "user_script_hosts_"? | 465 // TODO(jstritar): Rename to "user_script_hosts_"? |
465 URLPatternSet scriptable_hosts_; | 466 URLPatternSet scriptable_hosts_; |
466 | 467 |
467 // The list of hosts this effectively grants access to. | 468 // The list of hosts this effectively grants access to. |
468 URLPatternSet effective_hosts_; | 469 URLPatternSet effective_hosts_; |
469 }; | 470 }; |
470 | 471 |
471 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 472 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |