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

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

Issue 23867002: Move dns API to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding missing dns.idl file Created 7 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chrome_api_permissions.h" 5 #include "chrome/common/extensions/permissions/chrome_api_permissions.h"
6 6
7 #include "chrome/common/extensions/permissions/api_permission.h" 7 #include "chrome/common/extensions/permissions/api_permission.h"
8 #include "chrome/common/extensions/permissions/api_permission_set.h" 8 #include "chrome/common/extensions/permissions/api_permission_set.h"
9 #include "chrome/common/extensions/permissions/bluetooth_permission.h" 9 #include "chrome/common/extensions/permissions/bluetooth_permission.h"
10 #include "chrome/common/extensions/permissions/media_galleries_permission.h" 10 #include "chrome/common/extensions/permissions/media_galleries_permission.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 { APIPermission::kClipboardWrite, "clipboardWrite" }, 47 { APIPermission::kClipboardWrite, "clipboardWrite" },
48 { APIPermission::kDeclarativeContent, "declarativeContent" }, 48 { APIPermission::kDeclarativeContent, "declarativeContent" },
49 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest", 49 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest",
50 APIPermissionInfo::kFlagNone, 50 APIPermissionInfo::kFlagNone,
51 IDS_EXTENSION_PROMPT_WARNING_DECLARATIVE_WEB_REQUEST, 51 IDS_EXTENSION_PROMPT_WARNING_DECLARATIVE_WEB_REQUEST,
52 PermissionMessage::kDeclarativeWebRequest }, 52 PermissionMessage::kDeclarativeWebRequest },
53 { APIPermission::kDesktopCapture, "desktopCapture", 53 { APIPermission::kDesktopCapture, "desktopCapture",
54 APIPermissionInfo::kFlagNone, 54 APIPermissionInfo::kFlagNone,
55 IDS_EXTENSION_PROMPT_WARNING_DESKTOP_CAPTURE, 55 IDS_EXTENSION_PROMPT_WARNING_DESKTOP_CAPTURE,
56 PermissionMessage::kDesktopCapture }, 56 PermissionMessage::kDesktopCapture },
57 { APIPermission::kDns, "dns" },
57 { APIPermission::kDownloads, "downloads", APIPermissionInfo::kFlagNone, 58 { APIPermission::kDownloads, "downloads", APIPermissionInfo::kFlagNone,
58 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, 59 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS,
59 PermissionMessage::kDownloads }, 60 PermissionMessage::kDownloads },
60 { APIPermission::kDownloadsOpen, "downloads.open", 61 { APIPermission::kDownloadsOpen, "downloads.open",
61 APIPermissionInfo::kFlagNone, 62 APIPermissionInfo::kFlagNone,
62 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS_OPEN, 63 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS_OPEN,
63 PermissionMessage::kDownloadsOpen }, 64 PermissionMessage::kDownloadsOpen },
64 { APIPermission::kDownloadsShelf, "downloads.shelf" }, 65 { APIPermission::kDownloadsShelf, "downloads.shelf" },
65 { APIPermission::kIdentity, "identity" }, 66 { APIPermission::kIdentity, "identity" },
66 { APIPermission::kExperimental, "experimental", 67 { APIPermission::kExperimental, "experimental",
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Register aliases. 334 // Register aliases.
334 std::vector<PermissionsProvider::AliasInfo> aliases; 335 std::vector<PermissionsProvider::AliasInfo> aliases;
335 aliases.push_back(PermissionsProvider::AliasInfo( 336 aliases.push_back(PermissionsProvider::AliasInfo(
336 "unlimitedStorage", kOldUnlimitedStoragePermission)); 337 "unlimitedStorage", kOldUnlimitedStoragePermission));
337 aliases.push_back(PermissionsProvider::AliasInfo( 338 aliases.push_back(PermissionsProvider::AliasInfo(
338 "tabs", kWindowsPermission)); 339 "tabs", kWindowsPermission));
339 return aliases; 340 return aliases;
340 } 341 }
341 342
342 } // namespace extensions 343 } // 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