OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ |
6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ | 6 #define EXTENSIONS_COMMON_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 kAppView, | 46 kAppView, |
47 kAudio, | 47 kAudio, |
48 kAudioCapture, | 48 kAudioCapture, |
49 kAutomation, | 49 kAutomation, |
50 kAutoTestPrivate, | 50 kAutoTestPrivate, |
51 kBackground, | 51 kBackground, |
52 kBluetoothPrivate, | 52 kBluetoothPrivate, |
53 kBookmark, | 53 kBookmark, |
54 kBookmarkManagerPrivate, | 54 kBookmarkManagerPrivate, |
55 kBrailleDisplayPrivate, | 55 kBrailleDisplayPrivate, |
| 56 kBrowser, |
56 kBrowsingData, | 57 kBrowsingData, |
57 kCast, | 58 kCast, |
58 kCastStreaming, | 59 kCastStreaming, |
59 kChromeosInfoPrivate, | 60 kChromeosInfoPrivate, |
60 kClipboardRead, | 61 kClipboardRead, |
61 kClipboardWrite, | 62 kClipboardWrite, |
62 kCloudPrintPrivate, | 63 kCloudPrintPrivate, |
63 kCommandLinePrivate, | 64 kCommandLinePrivate, |
64 kCommandsAccessibility, | 65 kCommandsAccessibility, |
65 kContentSettings, | 66 kContentSettings, |
66 kContextMenus, | 67 kContextMenus, |
67 kCookie, | 68 kCookie, |
68 kCopresence, | 69 kCopresence, |
69 kCopresencePrivate, | 70 kCopresencePrivate, |
70 kDiagnostics, | 71 kDiagnostics, |
71 kDial, | 72 kDial, |
72 kDebugger, | 73 kDebugger, |
73 kDeclarative, | 74 kDeclarative, |
74 kDeclarativeContent, | 75 kDeclarativeContent, |
75 kDeclarativeWebRequest, | 76 kDeclarativeWebRequest, |
76 kDesktopCapture, | 77 kDesktopCapture, |
77 kDeveloperPrivate, | 78 kDeveloperPrivate, |
78 kDevtools, | 79 kDevtools, |
79 kDns, | 80 kDns, |
| 81 kDocumentScan, |
80 kDownloads, | 82 kDownloads, |
81 kDownloadsInternal, | 83 kDownloadsInternal, |
82 kDownloadsOpen, | 84 kDownloadsOpen, |
83 kDownloadsShelf, | 85 kDownloadsShelf, |
84 kEasyUnlockPrivate, | 86 kEasyUnlockPrivate, |
85 kEchoPrivate, | 87 kEchoPrivate, |
86 kEmbeddedExtensionOptions, | 88 kEmbeddedExtensionOptions, |
87 kEnterprisePlatformKeys, | 89 kEnterprisePlatformKeys, |
88 kEnterprisePlatformKeysPrivate, | 90 kEnterprisePlatformKeysPrivate, |
89 kExperienceSamplingPrivate, | 91 kExperienceSamplingPrivate, |
90 kExperimental, | 92 kExperimental, |
91 kExternallyConnectableAllUrls, | 93 kExternallyConnectableAllUrls, |
92 kFeedbackPrivate, | 94 kFeedbackPrivate, |
93 kFileBrowserHandler, | 95 kFileBrowserHandler, |
94 kFileBrowserHandlerInternal, | 96 kFileBrowserHandlerInternal, |
95 kFileManagerPrivate, | 97 kFileManagerPrivate, |
96 kFileSystem, | 98 kFileSystem, |
97 kFileSystemDirectory, | 99 kFileSystemDirectory, |
98 kFileSystemProvider, | 100 kFileSystemProvider, |
99 kFileSystemRetainEntries, | 101 kFileSystemRetainEntries, |
100 kFileSystemWrite, | 102 kFileSystemWrite, |
101 kFileSystemWriteDirectory, | 103 kFileSystemWriteDirectory, |
| 104 kFirstRunPrivate, |
102 kFontSettings, | 105 kFontSettings, |
103 kFullscreen, | 106 kFullscreen, |
104 kGcdPrivate, | 107 kGcdPrivate, |
105 kGcm, | 108 kGcm, |
106 kGeolocation, | 109 kGeolocation, |
107 kHid, | 110 kHid, |
108 kHistory, | 111 kHistory, |
109 kHomepage, | 112 kHomepage, |
110 kHotwordPrivate, | 113 kHotwordPrivate, |
111 kIdentity, | 114 kIdentity, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 kWebrtcLoggingPrivate, | 184 kWebrtcLoggingPrivate, |
182 kWebstorePrivate, | 185 kWebstorePrivate, |
183 kWebView, | 186 kWebView, |
184 kWindowShape, | 187 kWindowShape, |
185 kScreenlockPrivate, | 188 kScreenlockPrivate, |
186 kSystemCpu, | 189 kSystemCpu, |
187 kSystemMemory, | 190 kSystemMemory, |
188 kSystemNetwork, | 191 kSystemNetwork, |
189 kSystemInfoCpu, | 192 kSystemInfoCpu, |
190 kSystemInfoMemory, | 193 kSystemInfoMemory, |
191 kFirstRunPrivate, | |
192 kBrowser, | |
193 kEnumBoundary | 194 kEnumBoundary |
194 }; | 195 }; |
195 | 196 |
196 struct CheckParam { | 197 struct CheckParam { |
197 }; | 198 }; |
198 | 199 |
199 explicit APIPermission(const APIPermissionInfo* info); | 200 explicit APIPermission(const APIPermissionInfo* info); |
200 | 201 |
201 virtual ~APIPermission(); | 202 virtual ~APIPermission(); |
202 | 203 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 const char* const name_; | 367 const char* const name_; |
367 const int flags_; | 368 const int flags_; |
368 const int l10n_message_id_; | 369 const int l10n_message_id_; |
369 const PermissionMessage::ID message_id_; | 370 const PermissionMessage::ID message_id_; |
370 const APIPermissionConstructor api_permission_constructor_; | 371 const APIPermissionConstructor api_permission_constructor_; |
371 }; | 372 }; |
372 | 373 |
373 } // namespace extensions | 374 } // namespace extensions |
374 | 375 |
375 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ | 376 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ |
OLD | NEW |