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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 kHosts2, | 44 kHosts2, |
45 kHosts3, | 45 kHosts3, |
46 kHosts4OrMore, | 46 kHosts4OrMore, |
47 kHostsAll, | 47 kHostsAll, |
48 kFullAccess, | 48 kFullAccess, |
49 kClipboard, | 49 kClipboard, |
50 kTtsEngine, | 50 kTtsEngine, |
51 kContentSettings, | 51 kContentSettings, |
52 kAllPageContent, | 52 kAllPageContent, |
53 kPrivacy, | 53 kPrivacy, |
54 kDownloads, | |
Aaron Boodman
2012/03/20 05:33:50
This has changed. See _permission_features.json.
| |
54 kEnumBoundary | 55 kEnumBoundary |
55 }; | 56 }; |
56 | 57 |
57 // Creates the corresponding permission message for a list of hosts. This is | 58 // Creates the corresponding permission message for a list of hosts. This is |
58 // simply a convenience method around the constructor, since the messages | 59 // simply a convenience method around the constructor, since the messages |
59 // change depending on what hosts are present. | 60 // change depending on what hosts are present. |
60 static ExtensionPermissionMessage CreateFromHostList( | 61 static ExtensionPermissionMessage CreateFromHostList( |
61 const std::set<std::string>& hosts); | 62 const std::set<std::string>& hosts); |
62 | 63 |
63 // Creates the corresponding permission message. | 64 // Creates the corresponding permission message. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 kChromeAuthPrivate, | 102 kChromeAuthPrivate, |
102 kChromePrivate, | 103 kChromePrivate, |
103 kChromeosInfoPrivate, | 104 kChromeosInfoPrivate, |
104 kClipboardRead, | 105 kClipboardRead, |
105 kClipboardWrite, | 106 kClipboardWrite, |
106 kContentSettings, | 107 kContentSettings, |
107 kContextMenus, | 108 kContextMenus, |
108 kCookie, | 109 kCookie, |
109 kDebugger, | 110 kDebugger, |
110 kDevtools, | 111 kDevtools, |
112 kDownloads, | |
111 kExperimental, | 113 kExperimental, |
112 kFileBrowserHandler, | 114 kFileBrowserHandler, |
113 kFileBrowserPrivate, | 115 kFileBrowserPrivate, |
114 kGeolocation, | 116 kGeolocation, |
115 kHistory, | 117 kHistory, |
116 kIdle, | 118 kIdle, |
117 kInput, | 119 kInput, |
118 kInputMethodPrivate, | 120 kInputMethodPrivate, |
119 kKeybinding, | 121 kKeybinding, |
120 kManagement, | 122 kManagement, |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
493 | 495 |
494 // The list of hosts that can be scripted by content scripts. | 496 // The list of hosts that can be scripted by content scripts. |
495 // TODO(jstritar): Rename to "user_script_hosts_"? | 497 // TODO(jstritar): Rename to "user_script_hosts_"? |
496 URLPatternSet scriptable_hosts_; | 498 URLPatternSet scriptable_hosts_; |
497 | 499 |
498 // The list of hosts this effectively grants access to. | 500 // The list of hosts this effectively grants access to. |
499 URLPatternSet effective_hosts_; | 501 URLPatternSet effective_hosts_; |
500 }; | 502 }; |
501 | 503 |
502 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 504 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |