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 kContentSettings, | 65 kContentSettings, |
65 kContextMenus, | 66 kContextMenus, |
66 kCookie, | 67 kCookie, |
67 kCopresence, | 68 kCopresence, |
68 kCopresencePrivate, | 69 kCopresencePrivate, |
69 kDiagnostics, | 70 kDiagnostics, |
70 kDial, | 71 kDial, |
71 kDebugger, | 72 kDebugger, |
72 kDeclarative, | 73 kDeclarative, |
73 kDeclarativeContent, | 74 kDeclarativeContent, |
74 kDeclarativeWebRequest, | 75 kDeclarativeWebRequest, |
75 kDesktopCapture, | 76 kDesktopCapture, |
76 kDeveloperPrivate, | 77 kDeveloperPrivate, |
77 kDevtools, | 78 kDevtools, |
78 kDns, | 79 kDns, |
| 80 kDocumentScan, |
79 kDownloads, | 81 kDownloads, |
80 kDownloadsInternal, | 82 kDownloadsInternal, |
81 kDownloadsOpen, | 83 kDownloadsOpen, |
82 kDownloadsShelf, | 84 kDownloadsShelf, |
83 kEasyUnlockPrivate, | 85 kEasyUnlockPrivate, |
84 kEchoPrivate, | 86 kEchoPrivate, |
85 kEmbeddedExtensionOptions, | 87 kEmbeddedExtensionOptions, |
86 kEnterprisePlatformKeys, | 88 kEnterprisePlatformKeys, |
87 kEnterprisePlatformKeysPrivate, | 89 kEnterprisePlatformKeysPrivate, |
88 kExperienceSamplingPrivate, | 90 kExperienceSamplingPrivate, |
89 kExperimental, | 91 kExperimental, |
90 kFeedbackPrivate, | 92 kFeedbackPrivate, |
91 kFileBrowserHandler, | 93 kFileBrowserHandler, |
92 kFileBrowserHandlerInternal, | 94 kFileBrowserHandlerInternal, |
93 kFileBrowserPrivate, | 95 kFileBrowserPrivate, |
94 kFileSystem, | 96 kFileSystem, |
95 kFileSystemDirectory, | 97 kFileSystemDirectory, |
96 kFileSystemProvider, | 98 kFileSystemProvider, |
97 kFileSystemRetainEntries, | 99 kFileSystemRetainEntries, |
98 kFileSystemWrite, | 100 kFileSystemWrite, |
99 kFileSystemWriteDirectory, | 101 kFileSystemWriteDirectory, |
| 102 kFirstRunPrivate, |
100 kFontSettings, | 103 kFontSettings, |
101 kFullscreen, | 104 kFullscreen, |
102 kGcdPrivate, | 105 kGcdPrivate, |
103 kGcm, | 106 kGcm, |
104 kGeolocation, | 107 kGeolocation, |
105 kHid, | 108 kHid, |
106 kHistory, | 109 kHistory, |
107 kHomepage, | 110 kHomepage, |
108 kHotwordPrivate, | 111 kHotwordPrivate, |
109 kIdentity, | 112 kIdentity, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 kWebrtcLoggingPrivate, | 181 kWebrtcLoggingPrivate, |
179 kWebstorePrivate, | 182 kWebstorePrivate, |
180 kWebView, | 183 kWebView, |
181 kWindowShape, | 184 kWindowShape, |
182 kScreenlockPrivate, | 185 kScreenlockPrivate, |
183 kSystemCpu, | 186 kSystemCpu, |
184 kSystemMemory, | 187 kSystemMemory, |
185 kSystemNetwork, | 188 kSystemNetwork, |
186 kSystemInfoCpu, | 189 kSystemInfoCpu, |
187 kSystemInfoMemory, | 190 kSystemInfoMemory, |
188 kFirstRunPrivate, | |
189 kBrowser, | |
190 kEnumBoundary | 191 kEnumBoundary |
191 }; | 192 }; |
192 | 193 |
193 struct CheckParam { | 194 struct CheckParam { |
194 }; | 195 }; |
195 | 196 |
196 explicit APIPermission(const APIPermissionInfo* info); | 197 explicit APIPermission(const APIPermissionInfo* info); |
197 | 198 |
198 virtual ~APIPermission(); | 199 virtual ~APIPermission(); |
199 | 200 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 const char* const name_; | 364 const char* const name_; |
364 const int flags_; | 365 const int flags_; |
365 const int l10n_message_id_; | 366 const int l10n_message_id_; |
366 const PermissionMessage::ID message_id_; | 367 const PermissionMessage::ID message_id_; |
367 const APIPermissionConstructor api_permission_constructor_; | 368 const APIPermissionConstructor api_permission_constructor_; |
368 }; | 369 }; |
369 | 370 |
370 } // namespace extensions | 371 } // namespace extensions |
371 | 372 |
372 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ | 373 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ |
OLD | NEW |