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 29 matching lines...) Expand all Loading... |
40 kHosts1, | 40 kHosts1, |
41 kHosts2, | 41 kHosts2, |
42 kHosts3, | 42 kHosts3, |
43 kHosts4OrMore, | 43 kHosts4OrMore, |
44 kHostsAll, | 44 kHostsAll, |
45 kFullAccess, | 45 kFullAccess, |
46 kClipboard, | 46 kClipboard, |
47 kTtsEngine, | 47 kTtsEngine, |
48 kContentSettings, | 48 kContentSettings, |
49 kAllPageContent, | 49 kAllPageContent, |
| 50 kIme, |
50 kEnumBoundary | 51 kEnumBoundary |
51 }; | 52 }; |
52 | 53 |
53 // Creates the corresponding permission message for a list of hosts. This is | 54 // Creates the corresponding permission message for a list of hosts. This is |
54 // simply a convenience method around the constructor, since the messages | 55 // simply a convenience method around the constructor, since the messages |
55 // change depending on what hosts are present. | 56 // change depending on what hosts are present. |
56 static ExtensionPermissionMessage CreateFromHostList( | 57 static ExtensionPermissionMessage CreateFromHostList( |
57 const std::set<std::string>& hosts); | 58 const std::set<std::string>& hosts); |
58 | 59 |
59 // Creates the corresponding permission message. | 60 // Creates the corresponding permission message. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 kContextMenus, | 102 kContextMenus, |
102 kCookie, | 103 kCookie, |
103 kDebugger, | 104 kDebugger, |
104 kDevtools, | 105 kDevtools, |
105 kExperimental, | 106 kExperimental, |
106 kFileBrowserHandler, | 107 kFileBrowserHandler, |
107 kFileBrowserPrivate, | 108 kFileBrowserPrivate, |
108 kGeolocation, | 109 kGeolocation, |
109 kHistory, | 110 kHistory, |
110 kIdle, | 111 kIdle, |
| 112 kIme, |
111 kInputMethodPrivate, | 113 kInputMethodPrivate, |
112 kManagement, | 114 kManagement, |
113 kMediaPlayerPrivate, | 115 kMediaPlayerPrivate, |
114 kMetricsPrivate, | 116 kMetricsPrivate, |
115 kNotification, | 117 kNotification, |
116 kPageCapture, | 118 kPageCapture, |
117 kPlugin, | 119 kPlugin, |
118 kProxy, | 120 kProxy, |
119 kSocket, | 121 kSocket, |
120 kTab, | 122 kTab, |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 429 |
428 // The list of hosts that can be scripted by content scripts. | 430 // The list of hosts that can be scripted by content scripts. |
429 // TODO(jstritar): Rename to "user_script_hosts_"? | 431 // TODO(jstritar): Rename to "user_script_hosts_"? |
430 URLPatternSet scriptable_hosts_; | 432 URLPatternSet scriptable_hosts_; |
431 | 433 |
432 // The list of hosts this effectively grants access to. | 434 // The list of hosts this effectively grants access to. |
433 URLPatternSet effective_hosts_; | 435 URLPatternSet effective_hosts_; |
434 }; | 436 }; |
435 | 437 |
436 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 438 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |