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

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

Issue 94093013: Add documentation for the chrome.sockets API and manifest key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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/bluetooth_permission.h" 7 #include "chrome/common/extensions/permissions/bluetooth_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/socket_permission.h" 9 #include "chrome/common/extensions/permissions/socket_permission.h"
10 #include "chrome/common/extensions/permissions/usb_device_permission.h" 10 #include "chrome/common/extensions/permissions/usb_device_permission.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 { APIPermission::kSerial, "serial", APIPermissionInfo::kFlagNone, 280 { APIPermission::kSerial, "serial", APIPermissionInfo::kFlagNone,
281 IDS_EXTENSION_PROMPT_WARNING_SERIAL, 281 IDS_EXTENSION_PROMPT_WARNING_SERIAL,
282 PermissionMessage::kSerial }, 282 PermissionMessage::kSerial },
283 // Because warning messages for the "socket" permission vary based on the 283 // Because warning messages for the "socket" permission vary based on the
284 // permissions parameters, no message ID or message text is specified here. 284 // permissions parameters, no message ID or message text is specified here.
285 // The message ID and text used will be determined at run-time in the 285 // The message ID and text used will be determined at run-time in the
286 // |SocketPermission| class. 286 // |SocketPermission| class.
287 { APIPermission::kSocket, "socket", 287 { APIPermission::kSocket, "socket",
288 APIPermissionInfo::kFlagCannotBeOptional, 0, 288 APIPermissionInfo::kFlagCannotBeOptional, 0,
289 PermissionMessage::kNone, &CreateAPIPermission<SocketPermission> }, 289 PermissionMessage::kNone, &CreateAPIPermission<SocketPermission> },
290 { APIPermission::kSocketsUdp, "sockets.udp" },
291 { APIPermission::kAppCurrentWindowInternal, "app.currentWindowInternal" }, 290 { APIPermission::kAppCurrentWindowInternal, "app.currentWindowInternal" },
292 { APIPermission::kAppRuntime, "app.runtime" }, 291 { APIPermission::kAppRuntime, "app.runtime" },
293 { APIPermission::kAppWindow, "app.window" }, 292 { APIPermission::kAppWindow, "app.window" },
294 { APIPermission::kAlwaysOnTopWindows, "alwaysOnTopWindows" }, 293 { APIPermission::kAlwaysOnTopWindows, "alwaysOnTopWindows" },
295 { APIPermission::kAudioCapture, "audioCapture", 294 { APIPermission::kAudioCapture, "audioCapture",
296 APIPermissionInfo::kFlagNone, 295 APIPermissionInfo::kFlagNone,
297 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, 296 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
298 PermissionMessage::kAudioCapture }, 297 PermissionMessage::kAudioCapture },
299 { APIPermission::kVideoCapture, "videoCapture", 298 { APIPermission::kVideoCapture, "videoCapture",
300 APIPermissionInfo::kFlagNone, 299 APIPermissionInfo::kFlagNone,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Register aliases. 394 // Register aliases.
396 std::vector<PermissionsProvider::AliasInfo> aliases; 395 std::vector<PermissionsProvider::AliasInfo> aliases;
397 aliases.push_back(PermissionsProvider::AliasInfo( 396 aliases.push_back(PermissionsProvider::AliasInfo(
398 "unlimitedStorage", kOldUnlimitedStoragePermission)); 397 "unlimitedStorage", kOldUnlimitedStoragePermission));
399 aliases.push_back(PermissionsProvider::AliasInfo( 398 aliases.push_back(PermissionsProvider::AliasInfo(
400 "tabs", kWindowsPermission)); 399 "tabs", kWindowsPermission));
401 return aliases; 400 return aliases;
402 } 401 }
403 402
404 } // namespace extensions 403 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698