OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/common/permissions/extensions_api_permissions.h" | 5 #include "extensions/common/permissions/extensions_api_permissions.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 {APIPermission::kExtensionView, "extensionview", | 56 {APIPermission::kExtensionView, "extensionview", |
57 APIPermissionInfo::kFlagCannotBeOptional}, | 57 APIPermissionInfo::kFlagCannotBeOptional}, |
58 {APIPermission::kExternallyConnectableAllUrls, | 58 {APIPermission::kExternallyConnectableAllUrls, |
59 "externally_connectable.all_urls"}, | 59 "externally_connectable.all_urls"}, |
60 {APIPermission::kFullscreen, "app.window.fullscreen"}, | 60 {APIPermission::kFullscreen, "app.window.fullscreen"}, |
61 {APIPermission::kHid, "hid"}, | 61 {APIPermission::kHid, "hid"}, |
62 {APIPermission::kImeWindowEnabled, "app.window.ime"}, | 62 {APIPermission::kImeWindowEnabled, "app.window.ime"}, |
63 {APIPermission::kOverrideEscFullscreen, | 63 {APIPermission::kOverrideEscFullscreen, |
64 "app.window.fullscreen.overrideEsc"}, | 64 "app.window.fullscreen.overrideEsc"}, |
65 {APIPermission::kIdle, "idle"}, | 65 {APIPermission::kIdle, "idle"}, |
| 66 {APIPermission::kMediaPerceptionPrivate, "mediaPerceptionPrivate"}, |
66 {APIPermission::kMetricsPrivate, "metricsPrivate", | 67 {APIPermission::kMetricsPrivate, "metricsPrivate", |
67 APIPermissionInfo::kFlagCannotBeOptional}, | 68 APIPermissionInfo::kFlagCannotBeOptional}, |
68 {APIPermission::kNetworkingConfig, "networking.config"}, | 69 {APIPermission::kNetworkingConfig, "networking.config"}, |
69 {APIPermission::kNetworkingOnc, "networking.onc"}, | 70 {APIPermission::kNetworkingOnc, "networking.onc"}, |
70 {APIPermission::kNetworkingPrivate, "networkingPrivate", | 71 {APIPermission::kNetworkingPrivate, "networkingPrivate", |
71 APIPermissionInfo::kFlagCannotBeOptional}, | 72 APIPermissionInfo::kFlagCannotBeOptional}, |
72 {APIPermission::kPower, "power"}, | 73 {APIPermission::kPower, "power"}, |
73 {APIPermission::kPrinterProvider, "printerProvider"}, | 74 {APIPermission::kPrinterProvider, "printerProvider"}, |
74 {APIPermission::kSerial, "serial"}, | 75 {APIPermission::kSerial, "serial"}, |
75 {APIPermission::kSocket, "socket", | 76 {APIPermission::kSocket, "socket", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 108 |
108 std::vector<std::unique_ptr<APIPermissionInfo>> permissions; | 109 std::vector<std::unique_ptr<APIPermissionInfo>> permissions; |
109 | 110 |
110 for (size_t i = 0; i < arraysize(permissions_to_register); ++i) | 111 for (size_t i = 0; i < arraysize(permissions_to_register); ++i) |
111 permissions.push_back( | 112 permissions.push_back( |
112 base::WrapUnique(new APIPermissionInfo(permissions_to_register[i]))); | 113 base::WrapUnique(new APIPermissionInfo(permissions_to_register[i]))); |
113 return permissions; | 114 return permissions; |
114 } | 115 } |
115 | 116 |
116 } // namespace extensions | 117 } // namespace extensions |
OLD | NEW |