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

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

Issue 12381035: Move Mime type handling to streamsPrivate API, so that it works on Desktop Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize test variable Created 7 years, 9 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 kFlagCannotBeOptional }, 275 kFlagCannotBeOptional },
276 { APIPermission::kWallpaperPrivate, "wallpaperPrivate", 276 { APIPermission::kWallpaperPrivate, "wallpaperPrivate",
277 kFlagCannotBeOptional }, 277 kFlagCannotBeOptional },
278 { APIPermission::kWebRequestInternal, "webRequestInternal" }, 278 { APIPermission::kWebRequestInternal, "webRequestInternal" },
279 { APIPermission::kWebSocketProxyPrivate, "webSocketProxyPrivate", 279 { APIPermission::kWebSocketProxyPrivate, "webSocketProxyPrivate",
280 kFlagCannotBeOptional }, 280 kFlagCannotBeOptional },
281 { APIPermission::kWebstorePrivate, "webstorePrivate", 281 { APIPermission::kWebstorePrivate, "webstorePrivate",
282 kFlagCannotBeOptional }, 282 kFlagCannotBeOptional },
283 { APIPermission::kMediaGalleriesPrivate, "mediaGalleriesPrivate", 283 { APIPermission::kMediaGalleriesPrivate, "mediaGalleriesPrivate",
284 kFlagCannotBeOptional }, 284 kFlagCannotBeOptional },
285 { APIPermission::kStreamsPrivate, "streamsPrivate", kFlagCannotBeOptional },
285 286
286 // Full url access permissions. 287 // Full url access permissions.
287 { APIPermission::kDebugger, "debugger", 288 { APIPermission::kDebugger, "debugger",
288 kFlagImpliesFullURLAccess | kFlagCannotBeOptional, 289 kFlagImpliesFullURLAccess | kFlagCannotBeOptional,
289 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 290 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
290 PermissionMessage::kDebugger }, 291 PermissionMessage::kDebugger },
291 { APIPermission::kDevtools, "devtools", 292 { APIPermission::kDevtools, "devtools",
292 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, 293 kFlagImpliesFullURLAccess | kFlagCannotBeOptional },
293 { APIPermission::kPageCapture, "pageCapture", 294 { APIPermission::kPageCapture, "pageCapture",
294 kFlagImpliesFullURLAccess }, 295 kFlagImpliesFullURLAccess },
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 pr.flags, 367 pr.flags,
367 pr.constructor); 368 pr.constructor);
368 } 369 }
369 370
370 // Register aliases. 371 // Register aliases.
371 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 372 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
372 info->RegisterAlias("tabs", kWindowsPermission); 373 info->RegisterAlias("tabs", kWindowsPermission);
373 } 374 }
374 375
375 } // namespace extensions 376 } // 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