| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 public: | 90 public: |
| 91 enum ID { | 91 enum ID { |
| 92 // Error codes. | 92 // Error codes. |
| 93 kInvalid = -2, | 93 kInvalid = -2, |
| 94 kUnknown = -1, | 94 kUnknown = -1, |
| 95 | 95 |
| 96 // Real permissions. | 96 // Real permissions. |
| 97 kAppNotifications, | 97 kAppNotifications, |
| 98 kBackground, | 98 kBackground, |
| 99 kBookmark, | 99 kBookmark, |
| 100 kBrowsingData, |
| 100 kChromeAuthPrivate, | 101 kChromeAuthPrivate, |
| 101 kChromePrivate, | 102 kChromePrivate, |
| 102 kChromeosInfoPrivate, | 103 kChromeosInfoPrivate, |
| 103 kClipboardRead, | 104 kClipboardRead, |
| 104 kClipboardWrite, | 105 kClipboardWrite, |
| 105 kContentSettings, | 106 kContentSettings, |
| 106 kContextMenus, | 107 kContextMenus, |
| 107 kCookie, | 108 kCookie, |
| 108 kDebugger, | 109 kDebugger, |
| 109 kDevtools, | 110 kDevtools, |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 493 |
| 493 // The list of hosts that can be scripted by content scripts. | 494 // The list of hosts that can be scripted by content scripts. |
| 494 // TODO(jstritar): Rename to "user_script_hosts_"? | 495 // TODO(jstritar): Rename to "user_script_hosts_"? |
| 495 URLPatternSet scriptable_hosts_; | 496 URLPatternSet scriptable_hosts_; |
| 496 | 497 |
| 497 // The list of hosts this effectively grants access to. | 498 // The list of hosts this effectively grants access to. |
| 498 URLPatternSet effective_hosts_; | 499 URLPatternSet effective_hosts_; |
| 499 }; | 500 }; |
| 500 | 501 |
| 501 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 502 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
| OLD | NEW |