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

Side by Side Diff: extensions/common/permissions/extensions_api_permissions.cc

Issue 2791983004: DBus MediaAnalyticsClient and media_perception pb. (Closed)
Patch Set: Integrate weigua@ Upstart POC and handle D-Bus Upstart callbacks Created 3 years, 7 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698