| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 kMetricsPrivate, | 113 kMetricsPrivate, |
| 114 kNotification, | 114 kNotification, |
| 115 kPlugin, | 115 kPlugin, |
| 116 kProxy, | 116 kProxy, |
| 117 kTab, | 117 kTab, |
| 118 kTts, | 118 kTts, |
| 119 kTtsEngine, | 119 kTtsEngine, |
| 120 kUnlimitedStorage, | 120 kUnlimitedStorage, |
| 121 kWebNavigation, | 121 kWebNavigation, |
| 122 kWebRequest, | 122 kWebRequest, |
| 123 kWebRequestBlocking, |
| 123 kWebSocketProxyPrivate, | 124 kWebSocketProxyPrivate, |
| 124 kWebstorePrivate, | 125 kWebstorePrivate, |
| 125 kEnumBoundary | 126 kEnumBoundary |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 enum Flag { | 129 enum Flag { |
| 129 kFlagNone = 0, | 130 kFlagNone = 0, |
| 130 | 131 |
| 131 // Indicates if the permission can be accessed by hosted apps. | 132 // Indicates if the permission can be accessed by hosted apps. |
| 132 kFlagHostedApp = 1 << 0, | 133 kFlagHostedApp = 1 << 0, |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 | 413 |
| 413 // The list of hosts that can be scripted by content scripts. | 414 // The list of hosts that can be scripted by content scripts. |
| 414 // TODO(jstritar): Rename to "user_script_hosts_"? | 415 // TODO(jstritar): Rename to "user_script_hosts_"? |
| 415 URLPatternSet scriptable_hosts_; | 416 URLPatternSet scriptable_hosts_; |
| 416 | 417 |
| 417 // The list of hosts this effectively grants access to. | 418 // The list of hosts this effectively grants access to. |
| 418 URLPatternSet effective_hosts_; | 419 URLPatternSet effective_hosts_; |
| 419 }; | 420 }; |
| 420 | 421 |
| 421 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 422 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
| OLD | NEW |