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

Side by Side Diff: chrome/browser/extensions/activity_log/api_name_constants.h

Issue 14774012: Replaced enum strings with ints in Activity Log database (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed casting and a map for API calls to shortnames Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
Matt Perry 2013/05/18 00:38:19 Is this list auto-generated? It would be great if
felt 2013/05/18 01:25:21 Yes it was auto-generated although the script is n
Matt Perry 2013/05/20 17:46:14 Yep, that's a good plan. On 2013/05/18 01:25:21,
Matt Perry 2013/05/20 17:46:14 nit: drop the (c) in the file header. See http://d
felt 2013/05/20 21:10:38 Done. By the way-- how did you know about this? Do
Matt Perry 2013/05/20 21:20:48 I just happened to overhear someone mentioning thi
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Constants used in api_actions.cc.
6
7 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_API_NAME_CONSTANTS_H_
8 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_API_NAME_CONSTANTS_H_
9
10 namespace activity_log_api_name_constants {
11
12 // All of the chrome.* API names and events. If you add some, make sure to
13 // update kNumNames.
14 const int kNumNames = 397;
15 const char* const kNames[] =
16 {"alarms.clear", "alarms.clearAll", "alarms.create", "alarms.get",
Matt Perry 2013/05/18 00:38:19 style nit: const char* const kNames[] = { ... };
felt 2013/05/18 01:25:21 Done.
17 "alarms.getAll", "alarms.onAlarm", "app.runtime.onLaunched",
18 "app.runtime.onRestarted", "app.window.create", "app.window.current",
19 "app.window.onBoundsChanged", "app.window.onClosed",
20 "app.window.onFullscreened", "app.window.onMaximized",
21 "app.window.onMinimized", "app.window.onRestored", "bluetooth.connect",
22 "bluetooth.disconnect", "bluetooth.getAdapterState",
23 "bluetooth.getDevices", "bluetooth.getLocalOutOfBandPairingData",
24 "bluetooth.getServices", "bluetooth.onAdapterStateChanged",
25 "bluetooth.read", "bluetooth.setOutOfBandPairingData",
26 "bluetooth.startDiscovery", "bluetooth.stopDiscovery", "bluetooth.write",
27 "bookmarks.create", "bookmarks.get", "bookmarks.getChildren",
28 "bookmarks.getRecent", "bookmarks.getSubTree", "bookmarks.getTree",
29 "bookmarks.move", "bookmarks.onChanged", "bookmarks.onChildrenReordered",
30 "bookmarks.onCreated", "bookmarks.onImportBegan",
31 "bookmarks.onImportEnded", "bookmarks.onMoved", "bookmarks.onRemoved",
32 "bookmarks.remove", "bookmarks.removeTree", "bookmarks.search",
33 "bookmarks.update", "browserAction.disable", "browserAction.enable",
34 "browserAction.getBadgeBackgroundColor", "browserAction.getBadgeText",
35 "browserAction.getPopup", "browserAction.getTitle",
36 "browserAction.onClicked", "browserAction.setBadgeBackgroundColor",
37 "browserAction.setBadgeText", "browserAction.setIcon",
38 "browserAction.setPopup", "browserAction.setTitle", "browsingData.remove",
39 "browsingData.removeAppcache", "browsingData.removeCache",
40 "browsingData.removeCookies", "browsingData.removeDownloads",
41 "browsingData.removeFileSystems", "browsingData.removeFormData",
42 "browsingData.removeHistory", "browsingData.removeIndexedDB",
43 "browsingData.removeLocalStorage", "browsingData.removePasswords",
44 "browsingData.removePluginData", "browsingData.removeWebSQL",
45 "browsingData.settings", "commands.getAll", "commands.onCommand",
46 "contextMenus.create", "contextMenus.onClicked", "contextMenus.remove",
47 "contextMenus.removeAll", "contextMenus.update", "cookies.get",
48 "cookies.getAll", "cookies.getAllCookieStores", "cookies.onChanged",
49 "cookies.remove", "cookies.set", "debugger.attach", "debugger.detach",
50 "debugger.getTargets", "debugger.onDetach", "debugger.onEvent",
51 "debugger.sendCommand", "declarativeContent.onPageChanged",
52 "declarativeWebRequest.onMessage", "declarativeWebRequest.onRequest",
53 "devtools.inspectedWindow.eval", "devtools.inspectedWindow.getResources",
54 "devtools.inspectedWindow.onResourceAdded",
55 "devtools.inspectedWindow.onResourceContentCommitted",
56 "devtools.inspectedWindow.reload", "devtools.network.getHAR",
57 "devtools.network.onNavigated", "devtools.network.onRequestFinished",
58 "devtools.panels.create", "devtools.panels.setOpenResourceHandler",
59 "downloads.acceptDanger", "downloads.cancel", "downloads.download",
60 "downloads.drag", "downloads.erase", "downloads.getFileIcon",
61 "downloads.onChanged", "downloads.onCreated",
62 "downloads.onDeterminingFilename", "downloads.onErased", "downloads.open",
63 "downloads.pause", "downloads.resume", "downloads.search",
64 "downloads.show", "experimental.devtools.audits.addCategory",
65 "experimental.devtools.console.addMessage",
66 "experimental.devtools.console.getMessages",
67 "experimental.devtools.console.onMessageAdded",
68 "experimental.discovery.clearAllSuggestions",
69 "experimental.discovery.removeSuggestion",
70 "experimental.discovery.suggest", "experimental.history.getMostVisited",
71 "experimental.identity.getAuthToken",
72 "experimental.identity.launchWebAuthFlow", "experimental.infobars.show",
73 "experimental.mediaGalleries.assembleMediaFile",
74 "experimental.mediaGalleries.extractEmbeddedThumbnails",
75 "experimental.processes.getProcessIdForTab",
76 "experimental.processes.getProcessInfo",
77 "experimental.processes.onCreated", "experimental.processes.onExited",
78 "experimental.processes.onUnresponsive",
79 "experimental.processes.onUpdated",
80 "experimental.processes.onUpdatedWithMemory",
81 "experimental.processes.terminate",
82 "experimental.record.captureURLs", "experimental.record.replayURLs",
83 "experimental.speechInput.isRecording", "experimental.speechInput.onError",
84 "experimental.speechInput.onResult", "experimental.speechInput.onSoundEnd",
85 "experimental.speechInput.onSoundStart", "experimental.speechInput.start",
86 "experimental.speechInput.stop", "experimental.systemInfo.cpu.get" ,
87 "experimental.systemInfo.cpu.onUpdated",
88 "experimental.systemInfo.display.get",
89 "experimental.systemInfo.memory.get", "experimental.systemInfo.storage.get",
90 "experimental.systemInfo.storage.onAttached",
91 "experimental.systemInfo.storage.onAvailableCapacityChanged",
92 "experimental.systemInfo.storage.onDetached",
93 "extension.getBackgroundPage", "extension.getURL", "extension.getViews",
94 "extension.isAllowedFileSchemeAccess",
95 "extension.isAllowedIncognitoAccess", "extension.setUpdateUrlData",
96 "fileBrowserHandler.onExecute", "fileBrowserHandler.selectFile",
97 "fileSystem.chooseEntry", "fileSystem.getDisplayPath",
98 "fileSystem.getEntryById", "fileSystem.getEntryId",
99 "fileSystem.getWritableEntry", "fileSystem.isWritableEntry",
100 "fontSettings.clearDefaultFixedFontSize",
101 "fontSettings.clearDefaultFontSize", "fontSettings.clearFont",
102 "fontSettings.clearMinimumFontSize",
103 "fontSettings.getDefaultFixedFontSize", "fontSettings.getDefaultFontSize",
104 "fontSettings.getFont", "fontSettings.getFontList",
105 "fontSettings.getMinimumFontSize",
106 "fontSettings.onDefaultFixedFontSizeChanged",
107 "fontSettings.onDefaultFontSizeChanged", "fontSettings.onFontChanged",
108 "fontSettings.onMinimumFontSizeChanged",
109 "fontSettings.setDefaultFixedFontSize", "fontSettings.setDefaultFontSize",
110 "fontSettings.setFont", "fontSettings.setMinimumFontSize",
111 "history.addUrl", "history.deleteAll", "history.deleteRange",
112 "history.deleteUrl", "history.getVisits", "history.onVisitRemoved",
113 "history.onVisited", "history.search", "i18n.getAcceptLanguages",
114 "i18n.getMessage", "idle.onStateChanged", "idle.queryState",
115 "idle.setDetectionInterval", "input.ime.clearComposition",
116 "input.ime.commitText", "input.ime.deleteSurroundingText",
117 "input.ime.keyEventHandled", "input.ime.onActivate", "input.ime.onBlur",
118 "input.ime.onCandidateClicked", "input.ime.onDeactivated",
119 "input.ime.onFocus", "input.ime.onInputContextUpdate",
120 "input.ime.onKeyEvent", "input.ime.onMenuItemActivated",
121 "input.ime.onSurroundingTextChanged",
122 "input.ime.setCandidateWindowProperties", "input.ime.setCandidates",
123 "input.ime.setComposition", "input.ime.setCursorPosition",
124 "input.ime.setMenuItems", "input.ime.updateMenuItems", "management.get",
125 "management.getAll", "management.getPermissionWarningsById",
126 "management.getPermissionWarningsByManifest", "management.launchApp",
127 "management.onDisabled", "management.onEnabled", "management.onInstalled",
128 "management.onUninstalled", "management.setEnabled",
129 "management.uninstall", "management.uninstallSelf",
130 "mediaGalleries.getMediaFileSystemMetadata",
131 "mediaGalleries.getMediaFileSystems", "notifications.clear",
132 "notifications.create", "notifications.onButtonClicked",
133 "notifications.onClicked", "notifications.onClosed",
134 "notifications.onDisplayed", "notifications.update",
135 "omnibox.onInputCancelled", "omnibox.onInputChanged",
136 "omnibox.onInputEntered", "omnibox.onInputStarted",
137 "omnibox.setDefaultSuggestion", "pageAction.getPopup",
138 "pageAction.getTitle", "pageAction.hide", "pageAction.onClicked",
139 "pageAction.setIcon", "pageAction.setPopup", "pageAction.setTitle",
140 "pageAction.show", "pageCapture.saveAsMHTML", "permissions.contains",
141 "permissions.getAll", "permissions.onAdded", "permissions.onRemoved",
142 "permissions.remove", "permissions.request", "power.releaseKeepAwake",
143 "power.requestKeepAwake", "proxy.onProxyError",
144 "pushMessaging.getChannelId", "pushMessaging.onMessage", "runtime.connect",
145 "runtime.getBackgroundPage", "runtime.getManifest", "runtime.getURL",
146 "runtime.onBrowserUpdateAvailable", "runtime.onConnect",
147 "runtime.onConnectExternal", "runtime.onInstalled", "runtime.onMessage",
148 "runtime.onMessageExternal", "runtime.onStartup", "runtime.onSuspend",
149 "runtime.onSuspendCanceled", "runtime.onUpdateAvailable", "runtime.reload",
150 "runtime.requestUpdateCheck", "runtime.sendMessage",
151 "scriptBadge.getAttention", "scriptBadge.getPopup",
152 "scriptBadge.onClicked", "scriptBadge.setPopup", "serial.close",
153 "serial.flush", "serial.getControlSignals", "serial.getPorts",
154 "serial.open", "serial.read", "serial.setControlSignals", "serial.write",
155 "sessionRestore.getRecentlyClosed", "sessionRestore.restore",
156 "socket.accept", "socket.bind", "socket.connect", "socket.create",
157 "socket.destroy", "socket.disconnect", "socket.getInfo",
158 "socket.getNetworkList", "socket.listen", "socket.read", "socket.recvFrom",
159 "socket.sendTo", "socket.setKeepAlive", "socket.setNoDelay",
160 "socket.write", "storage.onChanged",
161 "syncFileSystem.getConflictResolutionPolicy",
162 "syncFileSystem.getFileStatus", "syncFileSystem.getFileStatuses",
163 "syncFileSystem.getUsageAndQuota", "syncFileSystem.onFileStatusChanged",
164 "syncFileSystem.onServiceStatusChanged",
165 "syncFileSystem.requestFileSystem",
166 "syncFileSystem.setConflictResolutionPolicy", "tabCapture.capture",
167 "tabCapture.getCapturedTabs", "tabCapture.onStatusChanged",
168 "tabs.captureVisibleTab", "tabs.connect", "tabs.create",
169 "tabs.detectLanguage", "tabs.duplicate", "tabs.executeScript", "tabs.get",
170 "tabs.getCurrent", "tabs.highlight", "tabs.insertCSS", "tabs.move",
171 "tabs.onActivated", "tabs.onAttached", "tabs.onCreated", "tabs.onDetached",
172 "tabs.onHighlighted", "tabs.onMoved", "tabs.onRemoved", "tabs.onReplaced",
173 "tabs.onUpdated", "tabs.query", "tabs.reload", "tabs.remove",
174 "tabs.sendMessage", "tabs.update", "topSites.get", "tts.getVoices",
175 "tts.isSpeaking", "tts.speak", "tts.stop", "ttsEngine.onSpeak",
176 "ttsEngine.onStop", "usb.bulkTransfer", "usb.claimInterface",
177 "usb.closeDevice", "usb.controlTransfer", "usb.findDevices",
178 "usb.interruptTransfer", "usb.isochronousTransfer", "usb.releaseInterface",
179 "usb.setInterfaceAlternateSetting", "webNavigation.getAllFrames",
180 "webNavigation.getFrame", "webNavigation.onBeforeNavigate",
181 "webNavigation.onCommitted", "webNavigation.onCompleted",
182 "webNavigation.onCreatedNavigationTarget",
183 "webNavigation.onDOMContentLoaded", "webNavigation.onErrorOccurred",
184 "webNavigation.onHistoryStateUpdated",
185 "webNavigation.onReferenceFragmentUpdated", "webNavigation.onTabReplaced",
186 "webRequest.handlerBehaviorChanged", "webRequest.onAuthRequired",
187 "webRequest.onBeforeRedirect", "webRequest.onBeforeRequest",
188 "webRequest.onBeforeSendHeaders", "webRequest.onCompleted",
189 "webRequest.onErrorOccurred", "webRequest.onHeadersReceived",
190 "webRequest.onResponseStarted", "webRequest.onSendHeaders",
191 "webstore.install", "windows.create", "windows.get", "windows.getAll",
192 "windows.getCurrent", "windows.getLastFocused", "windows.onCreated",
193 "windows.onFocusChanged", "windows.onRemoved", "windows.remove",
194 "windows.update"};
195
196
197 } // namespace activity_log_api_name_constants
198
199 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_API_NAME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698