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 #include "chrome/common/extensions/permissions/api_permission.h" | 5 #include "chrome/common/extensions/permissions/api_permission.h" |
6 | 6 |
7 #include "chrome/common/extensions/permissions/permissions_info.h" | 7 #include "chrome/common/extensions/permissions/permissions_info.h" |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int flags; | 51 int flags; |
52 int l10n_message_id; | 52 int l10n_message_id; |
53 PermissionMessage::ID message_id; | 53 PermissionMessage::ID message_id; |
54 } PermissionsToRegister[] = { | 54 } PermissionsToRegister[] = { |
55 // Register permissions for all extension types. | 55 // Register permissions for all extension types. |
56 { kBackground, "background" }, | 56 { kBackground, "background" }, |
57 { kClipboardRead, "clipboardRead", kFlagNone, | 57 { kClipboardRead, "clipboardRead", kFlagNone, |
58 IDS_EXTENSION_PROMPT_WARNING_CLIPBOARD, | 58 IDS_EXTENSION_PROMPT_WARNING_CLIPBOARD, |
59 PermissionMessage::kClipboard }, | 59 PermissionMessage::kClipboard }, |
60 { kClipboardWrite, "clipboardWrite" }, | 60 { kClipboardWrite, "clipboardWrite" }, |
61 { kDeclarative, "declarative" }, | |
62 { kDeclarativeWebRequest, "declarativeWebRequest" }, | 61 { kDeclarativeWebRequest, "declarativeWebRequest" }, |
63 { kDownloads, "downloads", kFlagNone, | 62 { kDownloads, "downloads", kFlagNone, |
64 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, | 63 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, |
65 PermissionMessage::kDownloads }, | 64 PermissionMessage::kDownloads }, |
66 { kExperimental, "experimental", kFlagCannotBeOptional }, | 65 { kExperimental, "experimental", kFlagCannotBeOptional }, |
67 { kGeolocation, "geolocation", kFlagCannotBeOptional, | 66 { kGeolocation, "geolocation", kFlagCannotBeOptional, |
68 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, | 67 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, |
69 PermissionMessage::kGeolocation }, | 68 PermissionMessage::kGeolocation }, |
70 { kNotification, "notifications" }, | 69 { kNotification, "notifications" }, |
71 { kUnlimitedStorage, "unlimitedStorage", kFlagCannotBeOptional }, | 70 { kUnlimitedStorage, "unlimitedStorage", kFlagCannotBeOptional }, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 184 |
186 // Register aliases. | 185 // Register aliases. |
187 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 186 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
188 info->RegisterAlias("tabs", kWindowsPermission); | 187 info->RegisterAlias("tabs", kWindowsPermission); |
189 // TODO(mihaip): Should be removed for the M20 branch, see | 188 // TODO(mihaip): Should be removed for the M20 branch, see |
190 // http://crbug.com/120447 for more details. | 189 // http://crbug.com/120447 for more details. |
191 info->RegisterAlias("background", kTemporaryBackgroundAlias); | 190 info->RegisterAlias("background", kTemporaryBackgroundAlias); |
192 } | 191 } |
193 | 192 |
194 } // namespace extensions | 193 } // namespace extensions |
OLD | NEW |