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

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: Fix base files 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 kFlagCannotBeOptional }, 276 kFlagCannotBeOptional },
277 { APIPermission::kWallpaperPrivate, "wallpaperPrivate", 277 { APIPermission::kWallpaperPrivate, "wallpaperPrivate",
278 kFlagCannotBeOptional }, 278 kFlagCannotBeOptional },
279 { APIPermission::kWebRequestInternal, "webRequestInternal" }, 279 { APIPermission::kWebRequestInternal, "webRequestInternal" },
280 { APIPermission::kWebSocketProxyPrivate, "webSocketProxyPrivate", 280 { APIPermission::kWebSocketProxyPrivate, "webSocketProxyPrivate",
281 kFlagCannotBeOptional }, 281 kFlagCannotBeOptional },
282 { APIPermission::kWebstorePrivate, "webstorePrivate", 282 { APIPermission::kWebstorePrivate, "webstorePrivate",
283 kFlagCannotBeOptional }, 283 kFlagCannotBeOptional },
284 { APIPermission::kMediaGalleriesPrivate, "mediaGalleriesPrivate", 284 { APIPermission::kMediaGalleriesPrivate, "mediaGalleriesPrivate",
285 kFlagCannotBeOptional }, 285 kFlagCannotBeOptional },
286 { APIPermission::kStreamsPrivate, "streamsPrivate", kFlagCannotBeOptional },
286 287
287 // Full url access permissions. 288 // Full url access permissions.
288 { APIPermission::kDebugger, "debugger", 289 { APIPermission::kDebugger, "debugger",
289 kFlagImpliesFullURLAccess | kFlagCannotBeOptional, 290 kFlagImpliesFullURLAccess | kFlagCannotBeOptional,
290 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER, 291 IDS_EXTENSION_PROMPT_WARNING_DEBUGGER,
291 PermissionMessage::kDebugger }, 292 PermissionMessage::kDebugger },
292 { APIPermission::kDevtools, "devtools", 293 { APIPermission::kDevtools, "devtools",
293 kFlagImpliesFullURLAccess | kFlagCannotBeOptional }, 294 kFlagImpliesFullURLAccess | kFlagCannotBeOptional },
294 { APIPermission::kPageCapture, "pageCapture", 295 { APIPermission::kPageCapture, "pageCapture",
295 kFlagImpliesFullURLAccess }, 296 kFlagImpliesFullURLAccess },
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 pr.flags, 368 pr.flags,
368 pr.constructor); 369 pr.constructor);
369 } 370 }
370 371
371 // Register aliases. 372 // Register aliases.
372 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 373 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
373 info->RegisterAlias("tabs", kWindowsPermission); 374 info->RegisterAlias("tabs", kWindowsPermission);
374 } 375 }
375 376
376 } // namespace extensions 377 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698