OLD | NEW |
---|---|
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 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 kRtcPrivate, | 108 kRtcPrivate, |
109 kScreensaver, | 109 kScreensaver, |
110 kSerial, | 110 kSerial, |
111 kSessionRestore, | 111 kSessionRestore, |
112 kSocket, | 112 kSocket, |
113 kStorage, | 113 kStorage, |
114 kStreamsPrivate, | 114 kStreamsPrivate, |
115 kSyncFileSystem, | 115 kSyncFileSystem, |
116 kSystemPrivate, | 116 kSystemPrivate, |
117 kSystemIndicator, | 117 kSystemIndicator, |
118 kSystemInfoCpu, | |
118 kSystemInfoDisplay, | 119 kSystemInfoDisplay, |
120 kSystemInfoMemory, | |
121 kSystemStorage, | |
122 kSystemStorageAddAvailabaleCapacityWatch, | |
123 kSystemStorageGetAllAvailableCapacityWatches, | |
124 kSystemStorageRemoveAllAvailableCapacityWatches, | |
125 kSystemStorageRemoveAvailableCapacityWatch, | |
126 kSystemStorageOnAvailableCapacityChanged, | |
Haojian Wu
2013/07/18 08:51:20
Do we need to these kSystemStorage*AvalableCapacit
not at google - send to devlin
2013/07/18 17:06:18
no. If the permission is same (for the sake of sho
Haojian Wu
2013/07/19 08:47:12
Done.
| |
119 kTab, | 127 kTab, |
120 kTabCapture, | 128 kTabCapture, |
121 kTerminalPrivate, | 129 kTerminalPrivate, |
122 kTopSites, | 130 kTopSites, |
123 kTts, | 131 kTts, |
124 kTtsEngine, | 132 kTtsEngine, |
125 kUnlimitedStorage, | 133 kUnlimitedStorage, |
126 kUsb, | 134 kUsb, |
127 kUsbDevice, | 135 kUsbDevice, |
128 kVideoCapture, | 136 kVideoCapture, |
129 kWallpaperPrivate, | 137 kWallpaperPrivate, |
130 kWebConnectable, // for externally_connectable manifest key | 138 kWebConnectable, // for externally_connectable manifest key |
131 kWebNavigation, | 139 kWebNavigation, |
132 kWebRequest, | 140 kWebRequest, |
133 kWebRequestBlocking, | 141 kWebRequestBlocking, |
134 kWebRequestInternal, | 142 kWebRequestInternal, |
135 kWebSocketProxyPrivate, | 143 kWebSocketProxyPrivate, |
136 kWebstorePrivate, | 144 kWebstorePrivate, |
137 kWebView, | 145 kWebView, |
138 kSystemInfoCpu, | |
139 kSystemInfoMemory, | |
140 kEnumBoundary | 146 kEnumBoundary |
141 }; | 147 }; |
142 | 148 |
143 struct CheckParam { | 149 struct CheckParam { |
144 }; | 150 }; |
145 | 151 |
146 explicit APIPermission(const APIPermissionInfo* info); | 152 explicit APIPermission(const APIPermissionInfo* info); |
147 | 153 |
148 virtual ~APIPermission(); | 154 virtual ~APIPermission(); |
149 | 155 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
293 const char* const name_; | 299 const char* const name_; |
294 const int flags_; | 300 const int flags_; |
295 const int l10n_message_id_; | 301 const int l10n_message_id_; |
296 const PermissionMessage::ID message_id_; | 302 const PermissionMessage::ID message_id_; |
297 const APIPermissionConstructor api_permission_constructor_; | 303 const APIPermissionConstructor api_permission_constructor_; |
298 }; | 304 }; |
299 | 305 |
300 } // namespace extensions | 306 } // namespace extensions |
301 | 307 |
302 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ | 308 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_H_ |
OLD | NEW |