| 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 "chrome/common/extensions/permissions/socket_permission.h" | 8 #include "chrome/common/extensions/permissions/socket_permission.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 { kDeclarativeWebRequest, "declarativeWebRequest" }, | 148 { kDeclarativeWebRequest, "declarativeWebRequest" }, |
| 149 { kDownloads, "downloads", kFlagNone, | 149 { kDownloads, "downloads", kFlagNone, |
| 150 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, | 150 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, |
| 151 PermissionMessage::kDownloads }, | 151 PermissionMessage::kDownloads }, |
| 152 { kExperimental, "experimental", kFlagCannotBeOptional }, | 152 { kExperimental, "experimental", kFlagCannotBeOptional }, |
| 153 { kGeolocation, "geolocation", kFlagCannotBeOptional, | 153 { kGeolocation, "geolocation", kFlagCannotBeOptional, |
| 154 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, | 154 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, |
| 155 PermissionMessage::kGeolocation }, | 155 PermissionMessage::kGeolocation }, |
| 156 { kNotification, "notifications" }, | 156 { kNotification, "notifications" }, |
| 157 { kUnlimitedStorage, "unlimitedStorage", kFlagCannotBeOptional }, | 157 { kUnlimitedStorage, "unlimitedStorage", kFlagCannotBeOptional }, |
| 158 { kWM, "wm" }, |
| 158 | 159 |
| 159 // Register hosted and packaged app permissions. | 160 // Register hosted and packaged app permissions. |
| 160 { kAppNotifications, "appNotifications" }, | 161 { kAppNotifications, "appNotifications" }, |
| 161 | 162 |
| 162 // Register extension permissions. | 163 // Register extension permissions. |
| 163 { kActiveTab, "activeTab" }, | 164 { kActiveTab, "activeTab" }, |
| 164 { kAlarms, "alarms" }, | 165 { kAlarms, "alarms" }, |
| 165 { kBookmark, "bookmarks", kFlagNone, | 166 { kBookmark, "bookmarks", kFlagNone, |
| 166 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, | 167 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, |
| 167 PermissionMessage::kBookmarks }, | 168 PermissionMessage::kBookmarks }, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 277 |
| 277 // Register aliases. | 278 // Register aliases. |
| 278 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); | 279 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); |
| 279 info->RegisterAlias("tabs", kWindowsPermission); | 280 info->RegisterAlias("tabs", kWindowsPermission); |
| 280 } | 281 } |
| 281 | 282 |
| 282 APIPermissionDetail::~APIPermissionDetail() { | 283 APIPermissionDetail::~APIPermissionDetail() { |
| 283 } | 284 } |
| 284 | 285 |
| 285 } // namespace extensions | 286 } // namespace extensions |
| OLD | NEW |