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 28 matching lines...) Expand all Loading... |
39 kDebugger, | 39 kDebugger, |
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 kEnumBoundary | 50 kEnumBoundary |
50 }; | 51 }; |
51 | 52 |
52 // Creates the corresponding permission message for a list of hosts. This is | 53 // Creates the corresponding permission message for a list of hosts. This is |
53 // simply a convenience method around the constructor, since the messages | 54 // simply a convenience method around the constructor, since the messages |
54 // change depending on what hosts are present. | 55 // change depending on what hosts are present. |
55 static ExtensionPermissionMessage CreateFromHostList( | 56 static ExtensionPermissionMessage CreateFromHostList( |
56 const std::set<std::string>& hosts); | 57 const std::set<std::string>& hosts); |
57 | 58 |
58 // Creates the corresponding permission message. | 59 // Creates the corresponding permission message. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 kFileBrowserHandler, | 106 kFileBrowserHandler, |
106 kFileBrowserPrivate, | 107 kFileBrowserPrivate, |
107 kGeolocation, | 108 kGeolocation, |
108 kHistory, | 109 kHistory, |
109 kIdle, | 110 kIdle, |
110 kInputMethodPrivate, | 111 kInputMethodPrivate, |
111 kManagement, | 112 kManagement, |
112 kMediaPlayerPrivate, | 113 kMediaPlayerPrivate, |
113 kMetricsPrivate, | 114 kMetricsPrivate, |
114 kNotification, | 115 kNotification, |
| 116 kPageCapture, |
115 kPlugin, | 117 kPlugin, |
116 kProxy, | 118 kProxy, |
117 kTab, | 119 kTab, |
118 kTts, | 120 kTts, |
119 kTtsEngine, | 121 kTtsEngine, |
120 kUnlimitedStorage, | 122 kUnlimitedStorage, |
121 kWebNavigation, | 123 kWebNavigation, |
122 kWebRequest, | 124 kWebRequest, |
123 kWebSocketProxyPrivate, | 125 kWebSocketProxyPrivate, |
124 kWebstorePrivate, | 126 kWebstorePrivate, |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 414 |
413 // The list of hosts that can be scripted by content scripts. | 415 // The list of hosts that can be scripted by content scripts. |
414 // TODO(jstritar): Rename to "user_script_hosts_"? | 416 // TODO(jstritar): Rename to "user_script_hosts_"? |
415 URLPatternSet scriptable_hosts_; | 417 URLPatternSet scriptable_hosts_; |
416 | 418 |
417 // The list of hosts this effectively grants access to. | 419 // The list of hosts this effectively grants access to. |
418 URLPatternSet effective_hosts_; | 420 URLPatternSet effective_hosts_; |
419 }; | 421 }; |
420 | 422 |
421 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 423 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |