Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Side by Side Diff: chrome/common/extensions/permissions/api_permission.cc

Issue 11547033: Implement declarativeContent API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/bluetooth_device_permission.h" 7 #include "chrome/common/extensions/permissions/bluetooth_device_permission.h"
8 #include "chrome/common/extensions/permissions/media_galleries_permission.h" 8 #include "chrome/common/extensions/permissions/media_galleries_permission.h"
9 #include "chrome/common/extensions/permissions/permissions_info.h" 9 #include "chrome/common/extensions/permissions/permissions_info.h"
10 #include "chrome/common/extensions/permissions/socket_permission.h" 10 #include "chrome/common/extensions/permissions/socket_permission.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int l10n_message_id; 169 int l10n_message_id;
170 PermissionMessage::ID message_id; 170 PermissionMessage::ID message_id;
171 APIPermissionConstructor constructor; 171 APIPermissionConstructor constructor;
172 } PermissionsToRegister[] = { 172 } PermissionsToRegister[] = {
173 // Register permissions for all extension types. 173 // Register permissions for all extension types.
174 { APIPermission::kBackground, "background" }, 174 { APIPermission::kBackground, "background" },
175 { APIPermission::kClipboardRead, "clipboardRead", kFlagNone, 175 { APIPermission::kClipboardRead, "clipboardRead", kFlagNone,
176 IDS_EXTENSION_PROMPT_WARNING_CLIPBOARD, 176 IDS_EXTENSION_PROMPT_WARNING_CLIPBOARD,
177 PermissionMessage::kClipboard }, 177 PermissionMessage::kClipboard },
178 { APIPermission::kClipboardWrite, "clipboardWrite" }, 178 { APIPermission::kClipboardWrite, "clipboardWrite" },
179 { APIPermission::kDeclarativeContent, "declarativeContent" },
179 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest" }, 180 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest" },
180 { APIPermission::kDownloads, "downloads", kFlagNone, 181 { APIPermission::kDownloads, "downloads", kFlagNone,
181 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, 182 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS,
182 PermissionMessage::kDownloads }, 183 PermissionMessage::kDownloads },
183 { APIPermission::kExperimental, "experimental", kFlagCannotBeOptional }, 184 { APIPermission::kExperimental, "experimental", kFlagCannotBeOptional },
184 { APIPermission::kGeolocation, "geolocation", kFlagCannotBeOptional, 185 { APIPermission::kGeolocation, "geolocation", kFlagCannotBeOptional,
185 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, 186 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION,
186 PermissionMessage::kGeolocation }, 187 PermissionMessage::kGeolocation },
187 { APIPermission::kNotification, "notifications" }, 188 { APIPermission::kNotification, "notifications" },
188 { APIPermission::kUnlimitedStorage, "unlimitedStorage", 189 { APIPermission::kUnlimitedStorage, "unlimitedStorage",
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 pr.flags, 361 pr.flags,
361 pr.constructor); 362 pr.constructor);
362 } 363 }
363 364
364 // Register aliases. 365 // Register aliases.
365 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 366 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
366 info->RegisterAlias("tabs", kWindowsPermission); 367 info->RegisterAlias("tabs", kWindowsPermission);
367 } 368 }
368 369
369 } // namespace extensions 370 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698