| 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 26 matching lines...) Expand all Loading... |
| 37 kTabs, | 37 kTabs, |
| 38 kManagement, | 38 kManagement, |
| 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 kTts, |
| 48 kTtsEngine, |
| 47 kEnumBoundary | 49 kEnumBoundary |
| 48 }; | 50 }; |
| 49 | 51 |
| 50 // Creates the corresponding permission message for a list of hosts. This is | 52 // Creates the corresponding permission message for a list of hosts. This is |
| 51 // simply a convenience method around the constructor, since the messages | 53 // simply a convenience method around the constructor, since the messages |
| 52 // change depending on what hosts are present. | 54 // change depending on what hosts are present. |
| 53 static ExtensionPermissionMessage CreateFromHostList( | 55 static ExtensionPermissionMessage CreateFromHostList( |
| 54 const std::set<std::string>& hosts); | 56 const std::set<std::string>& hosts); |
| 55 | 57 |
| 56 // Creates the corresponding permission message. | 58 // Creates the corresponding permission message. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 kFileBrowserPrivate, | 108 kFileBrowserPrivate, |
| 107 kGeolocation, | 109 kGeolocation, |
| 108 kHistory, | 110 kHistory, |
| 109 kIdle, | 111 kIdle, |
| 110 kInputMethodPrivate, | 112 kInputMethodPrivate, |
| 111 kManagement, | 113 kManagement, |
| 112 kMediaPlayerPrivate, | 114 kMediaPlayerPrivate, |
| 113 kNotification, | 115 kNotification, |
| 114 kProxy, | 116 kProxy, |
| 115 kTab, | 117 kTab, |
| 118 kTts, |
| 119 kTtsEngine, |
| 116 kUnlimitedStorage, | 120 kUnlimitedStorage, |
| 117 kWebSocketProxyPrivate, | 121 kWebSocketProxyPrivate, |
| 118 kWebstorePrivate, | 122 kWebstorePrivate, |
| 119 kDevtools, | 123 kDevtools, |
| 120 kPlugin, | 124 kPlugin, |
| 121 kEnumBoundary | 125 kEnumBoundary |
| 122 }; | 126 }; |
| 123 | 127 |
| 124 typedef std::set<ID> IDSet; | 128 typedef std::set<ID> IDSet; |
| 125 | 129 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 URLPatternSet explicit_hosts_; | 384 URLPatternSet explicit_hosts_; |
| 381 | 385 |
| 382 // The list of hosts that can be scripted by content scripts. | 386 // The list of hosts that can be scripted by content scripts. |
| 383 URLPatternSet scriptable_hosts_; | 387 URLPatternSet scriptable_hosts_; |
| 384 | 388 |
| 385 // The list of hosts this effectively grants access to. | 389 // The list of hosts this effectively grants access to. |
| 386 URLPatternSet effective_hosts_; | 390 URLPatternSet effective_hosts_; |
| 387 }; | 391 }; |
| 388 | 392 |
| 389 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 393 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
| OLD | NEW |