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