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

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

Issue 12300041: Add nativeMessaging extension permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 { APIPermission::kHistory, "history", kFlagNone, 211 { APIPermission::kHistory, "history", kFlagNone,
212 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY, 212 IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY,
213 PermissionMessage::kBrowsingHistory }, 213 PermissionMessage::kBrowsingHistory },
214 { APIPermission::kIdle, "idle" }, 214 { APIPermission::kIdle, "idle" },
215 { APIPermission::kInput, "input", kFlagNone, 215 { APIPermission::kInput, "input", kFlagNone,
216 IDS_EXTENSION_PROMPT_WARNING_INPUT, 216 IDS_EXTENSION_PROMPT_WARNING_INPUT,
217 PermissionMessage::kInput }, 217 PermissionMessage::kInput },
218 { APIPermission::kManagement, "management", kFlagNone, 218 { APIPermission::kManagement, "management", kFlagNone,
219 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, 219 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT,
220 PermissionMessage::kManagement }, 220 PermissionMessage::kManagement },
221 { APIPermission::kNativeMessaging, "nativeMessaging", kFlagNone,
222 IDS_EXTENSION_PROMPT_NATIVE_MESSAGING,
223 PermissionMessage::kNativeMessaging },
Matt Perry 2013/03/02 00:33:54 Let's copy the entry for APIPermission::kPlugin si
Sergey Ulanov 2013/03/02 01:14:27 Not sure it's the same level of access: Native mes
221 { APIPermission::kPrivacy, "privacy", kFlagNone, 224 { APIPermission::kPrivacy, "privacy", kFlagNone,
222 IDS_EXTENSION_PROMPT_WARNING_PRIVACY, 225 IDS_EXTENSION_PROMPT_WARNING_PRIVACY,
223 PermissionMessage::kPrivacy }, 226 PermissionMessage::kPrivacy },
224 { APIPermission::kSessionRestore, "sessionRestore" }, 227 { APIPermission::kSessionRestore, "sessionRestore" },
225 { APIPermission::kStorage, "storage" }, 228 { APIPermission::kStorage, "storage" },
226 // TODO(kinuko): syncFileSystem permission should take the service name 229 // TODO(kinuko): syncFileSystem permission should take the service name
227 // parameter. 230 // parameter.
228 { APIPermission::kSyncFileSystem, "syncFileSystem" }, 231 { APIPermission::kSyncFileSystem, "syncFileSystem" },
229 { APIPermission::kTab, "tabs", kFlagNone, 232 { APIPermission::kTab, "tabs", kFlagNone,
230 IDS_EXTENSION_PROMPT_WARNING_TABS, 233 IDS_EXTENSION_PROMPT_WARNING_TABS,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 pr.flags, 370 pr.flags,
368 pr.constructor); 371 pr.constructor);
369 } 372 }
370 373
371 // Register aliases. 374 // Register aliases.
372 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 375 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
373 info->RegisterAlias("tabs", kWindowsPermission); 376 info->RegisterAlias("tabs", kWindowsPermission);
374 } 377 }
375 378
376 } // namespace extensions 379 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | chrome/common/extensions/permissions/permission_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698