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

Side by Side Diff: extensions/common/permissions/api_permission.h

Issue 286933006: Implement a JavaScript API for document scanning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop vestigial file-related code; kOnstify strings Created 6 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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 kAlwaysOnTopWindows, 45 kAlwaysOnTopWindows,
46 kAudio, 46 kAudio,
47 kAudioCapture, 47 kAudioCapture,
48 kAutomation, 48 kAutomation,
49 kAutoTestPrivate, 49 kAutoTestPrivate,
50 kBackground, 50 kBackground,
51 kBluetoothPrivate, 51 kBluetoothPrivate,
52 kBookmark, 52 kBookmark,
53 kBookmarkManagerPrivate, 53 kBookmarkManagerPrivate,
54 kBrailleDisplayPrivate, 54 kBrailleDisplayPrivate,
55 kBrowser,
55 kBrowsingData, 56 kBrowsingData,
56 kCast, 57 kCast,
57 kCastStreaming, 58 kCastStreaming,
58 kChromeosInfoPrivate, 59 kChromeosInfoPrivate,
59 kClipboardRead, 60 kClipboardRead,
60 kClipboardWrite, 61 kClipboardWrite,
61 kCloudPrintPrivate, 62 kCloudPrintPrivate,
62 kCommandLinePrivate, 63 kCommandLinePrivate,
63 kContentSettings, 64 kContentSettings,
64 kContextMenus, 65 kContextMenus,
65 kCookie, 66 kCookie,
66 kDiagnostics, 67 kDiagnostics,
67 kDial, 68 kDial,
68 kDebugger, 69 kDebugger,
69 kDeclarative, 70 kDeclarative,
70 kDeclarativeContent, 71 kDeclarativeContent,
71 kDeclarativeWebRequest, 72 kDeclarativeWebRequest,
72 kDesktopCapture, 73 kDesktopCapture,
73 kDeveloperPrivate, 74 kDeveloperPrivate,
74 kDevtools, 75 kDevtools,
75 kDns, 76 kDns,
77 kDocumentScan,
76 kDownloads, 78 kDownloads,
77 kDownloadsInternal, 79 kDownloadsInternal,
78 kDownloadsOpen, 80 kDownloadsOpen,
79 kDownloadsShelf, 81 kDownloadsShelf,
80 kEchoPrivate, 82 kEchoPrivate,
81 kEnterprisePlatformKeysPrivate, 83 kEnterprisePlatformKeysPrivate,
82 kExperimental, 84 kExperimental,
83 kFeedbackPrivate, 85 kFeedbackPrivate,
84 kFileBrowserHandler, 86 kFileBrowserHandler,
85 kFileBrowserHandlerInternal, 87 kFileBrowserHandlerInternal,
86 kFileBrowserPrivate, 88 kFileBrowserPrivate,
87 kFileSystem, 89 kFileSystem,
88 kFileSystemDirectory, 90 kFileSystemDirectory,
89 kFileSystemProvider, 91 kFileSystemProvider,
90 kFileSystemRetainEntries, 92 kFileSystemRetainEntries,
91 kFileSystemWrite, 93 kFileSystemWrite,
92 kFileSystemWriteDirectory, 94 kFileSystemWriteDirectory,
95 kFirstRunPrivate,
93 kFontSettings, 96 kFontSettings,
94 kFullscreen, 97 kFullscreen,
95 kGcm, 98 kGcm,
96 kGeolocation, 99 kGeolocation,
97 kHid, 100 kHid,
98 kHistory, 101 kHistory,
99 kHomepage, 102 kHomepage,
100 kHotwordPrivate, 103 kHotwordPrivate,
101 kIdentity, 104 kIdentity,
102 kIdentityPrivate, 105 kIdentityPrivate,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 kWebrtcLoggingPrivate, 171 kWebrtcLoggingPrivate,
169 kWebstorePrivate, 172 kWebstorePrivate,
170 kWebView, 173 kWebView,
171 kWindowShape, 174 kWindowShape,
172 kScreenlockPrivate, 175 kScreenlockPrivate,
173 kSystemCpu, 176 kSystemCpu,
174 kSystemMemory, 177 kSystemMemory,
175 kSystemNetwork, 178 kSystemNetwork,
176 kSystemInfoCpu, 179 kSystemInfoCpu,
177 kSystemInfoMemory, 180 kSystemInfoMemory,
178 kFirstRunPrivate,
179 kBrowser,
180 kEnumBoundary 181 kEnumBoundary
181 }; 182 };
182 183
183 struct CheckParam { 184 struct CheckParam {
184 }; 185 };
185 186
186 explicit APIPermission(const APIPermissionInfo* info); 187 explicit APIPermission(const APIPermissionInfo* info);
187 188
188 virtual ~APIPermission(); 189 virtual ~APIPermission();
189 190
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 const char* const name_; 354 const char* const name_;
354 const int flags_; 355 const int flags_;
355 const int l10n_message_id_; 356 const int l10n_message_id_;
356 const PermissionMessage::ID message_id_; 357 const PermissionMessage::ID message_id_;
357 const APIPermissionConstructor api_permission_constructor_; 358 const APIPermissionConstructor api_permission_constructor_;
358 }; 359 };
359 360
360 } // namespace extensions 361 } // namespace extensions
361 362
362 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ 363 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698