| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 kHosts2, | 44 kHosts2, |
| 45 kHosts3, | 45 kHosts3, |
| 46 kHosts4OrMore, | 46 kHosts4OrMore, |
| 47 kHostsAll, | 47 kHostsAll, |
| 48 kFullAccess, | 48 kFullAccess, |
| 49 kClipboard, | 49 kClipboard, |
| 50 kTtsEngine, | 50 kTtsEngine, |
| 51 kContentSettings, | 51 kContentSettings, |
| 52 kAllPageContent, | 52 kAllPageContent, |
| 53 kPrivacy, | 53 kPrivacy, |
| 54 kManagedMode, |
| 54 kEnumBoundary | 55 kEnumBoundary |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 // Creates the corresponding permission message for a list of hosts. This is | 58 // Creates the corresponding permission message for a list of hosts. This is |
| 58 // simply a convenience method around the constructor, since the messages | 59 // simply a convenience method around the constructor, since the messages |
| 59 // change depending on what hosts are present. | 60 // change depending on what hosts are present. |
| 60 static ExtensionPermissionMessage CreateFromHostList( | 61 static ExtensionPermissionMessage CreateFromHostList( |
| 61 const std::set<std::string>& hosts); | 62 const std::set<std::string>& hosts); |
| 62 | 63 |
| 63 // Creates the corresponding permission message. | 64 // Creates the corresponding permission message. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 kDevtools, | 111 kDevtools, |
| 111 kExperimental, | 112 kExperimental, |
| 112 kFileBrowserHandler, | 113 kFileBrowserHandler, |
| 113 kFileBrowserPrivate, | 114 kFileBrowserPrivate, |
| 114 kGeolocation, | 115 kGeolocation, |
| 115 kHistory, | 116 kHistory, |
| 116 kIdle, | 117 kIdle, |
| 117 kInput, | 118 kInput, |
| 118 kInputMethodPrivate, | 119 kInputMethodPrivate, |
| 119 kKeybinding, | 120 kKeybinding, |
| 121 kManagedMode, |
| 120 kManagement, | 122 kManagement, |
| 121 kMediaPlayerPrivate, | 123 kMediaPlayerPrivate, |
| 122 kMetricsPrivate, | 124 kMetricsPrivate, |
| 123 kNotification, | 125 kNotification, |
| 124 kPageCapture, | 126 kPageCapture, |
| 125 kPlugin, | 127 kPlugin, |
| 126 kPrivacy, | 128 kPrivacy, |
| 127 kProxy, | 129 kProxy, |
| 128 kSocket, | 130 kSocket, |
| 129 kStorage, | 131 kStorage, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 495 |
| 494 // The list of hosts that can be scripted by content scripts. | 496 // The list of hosts that can be scripted by content scripts. |
| 495 // TODO(jstritar): Rename to "user_script_hosts_"? | 497 // TODO(jstritar): Rename to "user_script_hosts_"? |
| 496 URLPatternSet scriptable_hosts_; | 498 URLPatternSet scriptable_hosts_; |
| 497 | 499 |
| 498 // The list of hosts this effectively grants access to. | 500 // The list of hosts this effectively grants access to. |
| 499 URLPatternSet effective_hosts_; | 501 URLPatternSet effective_hosts_; |
| 500 }; | 502 }; |
| 501 | 503 |
| 502 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 504 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
| OLD | NEW |