| 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_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // | 275 // |
| 276 // NOTE: To add a new permission, define it here, and add an entry to | 276 // NOTE: To add a new permission, define it here, and add an entry to |
| 277 // Extension::kPermissions. | 277 // Extension::kPermissions. |
| 278 static const char kBackgroundPermission[]; | 278 static const char kBackgroundPermission[]; |
| 279 static const char kBookmarkPermission[]; | 279 static const char kBookmarkPermission[]; |
| 280 static const char kClipboardReadPermission[]; | 280 static const char kClipboardReadPermission[]; |
| 281 static const char kClipboardWritePermission[]; | 281 static const char kClipboardWritePermission[]; |
| 282 static const char kContentSettingsPermission[]; | 282 static const char kContentSettingsPermission[]; |
| 283 static const char kContextMenusPermission[]; | 283 static const char kContextMenusPermission[]; |
| 284 static const char kCookiePermission[]; | 284 static const char kCookiePermission[]; |
| 285 static const char kChromeosInfoPrivatePermissions[]; | 285 static const char kChromeosInfoPrivatePermission[]; |
| 286 static const char kDebuggerPermission[]; | 286 static const char kDebuggerPermission[]; |
| 287 static const char kExperimentalPermission[]; | 287 static const char kExperimentalPermission[]; |
| 288 static const char kFileBrowserHandlerPermission[]; | 288 static const char kFileBrowserHandlerPermission[]; |
| 289 static const char kFileBrowserPrivatePermission[]; | 289 static const char kFileBrowserPrivatePermission[]; |
| 290 static const char kGeolocationPermission[]; | 290 static const char kGeolocationPermission[]; |
| 291 static const char kHistoryPermission[]; | 291 static const char kHistoryPermission[]; |
| 292 static const char kIdlePermission[]; | 292 static const char kIdlePermission[]; |
| 293 static const char kManagementPermission[]; | 293 static const char kManagementPermission[]; |
| 294 static const char kNotificationPermission[]; | 294 static const char kNotificationPermission[]; |
| 295 static const char kProxyPermission[]; | 295 static const char kProxyPermission[]; |
| 296 static const char kTabPermission[]; | 296 static const char kTabPermission[]; |
| 297 static const char kUnlimitedStoragePermission[]; | 297 static const char kUnlimitedStoragePermission[]; |
| 298 static const char kWebstorePrivatePermission[]; | 298 static const char kWebstorePrivatePermission[]; |
| 299 static const char kWebSocketProxyPrivatePermission[]; |
| 299 | 300 |
| 300 static const Permission kPermissions[]; | 301 static const Permission kPermissions[]; |
| 301 static const size_t kNumPermissions; | 302 static const size_t kNumPermissions; |
| 302 static const char* const kHostedAppPermissionNames[]; | 303 static const char* const kHostedAppPermissionNames[]; |
| 303 static const size_t kNumHostedAppPermissions; | 304 static const size_t kNumHostedAppPermissions; |
| 304 static const char* const kComponentPrivatePermissionNames[]; | 305 static const char* const kComponentPrivatePermissionNames[]; |
| 305 static const size_t kNumComponentPrivatePermissions; | 306 static const size_t kNumComponentPrivatePermissions; |
| 306 | 307 |
| 307 // The old name for the unlimited storage permission, which is deprecated but | 308 // The old name for the unlimited storage permission, which is deprecated but |
| 308 // still accepted as meaning the same thing as kUnlimitedStoragePermission. | 309 // still accepted as meaning the same thing as kUnlimitedStoragePermission. |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 // Was the extension already disabled? | 989 // Was the extension already disabled? |
| 989 bool already_disabled; | 990 bool already_disabled; |
| 990 | 991 |
| 991 // The extension being unloaded - this should always be non-NULL. | 992 // The extension being unloaded - this should always be non-NULL. |
| 992 const Extension* extension; | 993 const Extension* extension; |
| 993 | 994 |
| 994 UnloadedExtensionInfo(const Extension* extension, Reason reason); | 995 UnloadedExtensionInfo(const Extension* extension, Reason reason); |
| 995 }; | 996 }; |
| 996 | 997 |
| 997 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 998 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |