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