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

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

Issue 13132004: Implement Enterprise Key API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 { APIPermission::kWallpaperPrivate, "wallpaperPrivate", 278 { APIPermission::kWallpaperPrivate, "wallpaperPrivate",
279 kFlagCannotBeOptional }, 279 kFlagCannotBeOptional },
280 { APIPermission::kWebRequestInternal, "webRequestInternal" }, 280 { APIPermission::kWebRequestInternal, "webRequestInternal" },
281 { APIPermission::kWebSocketProxyPrivate, "webSocketProxyPrivate", 281 { APIPermission::kWebSocketProxyPrivate, "webSocketProxyPrivate",
282 kFlagCannotBeOptional }, 282 kFlagCannotBeOptional },
283 { APIPermission::kWebstorePrivate, "webstorePrivate", 283 { APIPermission::kWebstorePrivate, "webstorePrivate",
284 kFlagCannotBeOptional }, 284 kFlagCannotBeOptional },
285 { APIPermission::kMediaGalleriesPrivate, "mediaGalleriesPrivate", 285 { APIPermission::kMediaGalleriesPrivate, "mediaGalleriesPrivate",
286 kFlagCannotBeOptional }, 286 kFlagCannotBeOptional },
287 { APIPermission::kStreamsPrivate, "streamsPrivate", kFlagCannotBeOptional }, 287 { APIPermission::kStreamsPrivate, "streamsPrivate", kFlagCannotBeOptional },
288 { APIPermission::kEnterpriseEnterpriseKeyPrivate,
289 "enterprise.enterpriseKeyPrivate", kFlagCannotBeOptional },
288 290
289 // Full url access permissions. 291 // Full url access permissions.
290 { APIPermission::kDebugger, "debugger", 292 { APIPermission::kDebugger, "debugger",
291 kFlagImpliesFullURLAccess | kFlagCannotBeOptional, 293 kFlagImpliesFullURLAccess | kFlagCannotBeOptional,
292 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 294 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
293 PermissionMessage::kDebugger }, 295 PermissionMessage::kDebugger },
294 { APIPermission::kDevtools, "devtools", 296 { APIPermission::kDevtools, "devtools",
295 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, 297 kFlagImpliesFullURLAccess | kFlagCannotBeOptional },
296 { APIPermission::kPageCapture, "pageCapture", 298 { APIPermission::kPageCapture, "pageCapture",
297 kFlagImpliesFullURLAccess }, 299 kFlagImpliesFullURLAccess },
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 pr.flags, 371 pr.flags,
370 pr.constructor); 372 pr.constructor);
371 } 373 }
372 374
373 // Register aliases. 375 // Register aliases.
374 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 376 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
375 info->RegisterAlias("tabs", kWindowsPermission); 377 info->RegisterAlias("tabs", kWindowsPermission);
376 } 378 }
377 379
378 } // namespace extensions 380 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698