OLD | NEW |
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_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Error codes. | 93 // Error codes. |
94 kInvalid = -2, | 94 kInvalid = -2, |
95 kUnknown = -1, | 95 kUnknown = -1, |
96 | 96 |
97 // Real permissions. | 97 // Real permissions. |
98 kAppNotifications, | 98 kAppNotifications, |
99 kBackground, | 99 kBackground, |
100 kBookmark, | 100 kBookmark, |
101 kBrowsingData, | 101 kBrowsingData, |
102 kChromeAuthPrivate, | 102 kChromeAuthPrivate, |
103 kChromePrivate, | |
104 kChromeosInfoPrivate, | 103 kChromeosInfoPrivate, |
105 kClipboardRead, | 104 kClipboardRead, |
106 kClipboardWrite, | 105 kClipboardWrite, |
107 kContentSettings, | 106 kContentSettings, |
108 kContextMenus, | 107 kContextMenus, |
109 kCookie, | 108 kCookie, |
110 kDebugger, | 109 kDebugger, |
111 kDevtools, | 110 kDevtools, |
112 kExperimental, | 111 kExperimental, |
113 kFileBrowserHandler, | 112 kFileBrowserHandler, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 422 |
424 // The list of hosts that can be scripted by content scripts. | 423 // The list of hosts that can be scripted by content scripts. |
425 // TODO(jstritar): Rename to "user_script_hosts_"? | 424 // TODO(jstritar): Rename to "user_script_hosts_"? |
426 URLPatternSet scriptable_hosts_; | 425 URLPatternSet scriptable_hosts_; |
427 | 426 |
428 // The list of hosts this effectively grants access to. | 427 // The list of hosts this effectively grants access to. |
429 URLPatternSet effective_hosts_; | 428 URLPatternSet effective_hosts_; |
430 }; | 429 }; |
431 | 430 |
432 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 431 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |