1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_EVENT_HISTOGRAM_VALUE_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_EVENT_HISTOGRAM_VALUE_H_
11 // TODO(kalman): I am still in the process of migrating Event construction away
12 // from using "UNKNOWN" to their real histogram values. See crbug.com/503402.
15 // *Never* reorder or delete entries in the |HistogramValue| enumeration.
16 // When creating a new extension event, add a new entry at the end of the
17 // enum, just prior to ENUM_BOUNDARY.
19 // Long version: See extension_function_histogram_value.h
22 FOR_TEST
, // Tests should use this for a stub histogram value (not UNKNOWN).
23 ACCESSIBILITY_PRIVATE_ON_INTRODUCE_CHROME_VOX
,
24 ACTIVITY_LOG_PRIVATE_ON_EXTENSION_ACTIVITY
,
26 APP_CURRENT_WINDOW_INTERNAL_ON_ALPHA_ENABLED_CHANGED
,
27 APP_CURRENT_WINDOW_INTERNAL_ON_BOUNDS_CHANGED
,
28 APP_CURRENT_WINDOW_INTERNAL_ON_CLOSED
,
29 APP_CURRENT_WINDOW_INTERNAL_ON_FULLSCREENED
,
30 APP_CURRENT_WINDOW_INTERNAL_ON_MAXIMIZED
,
31 APP_CURRENT_WINDOW_INTERNAL_ON_MINIMIZED
,
32 APP_CURRENT_WINDOW_INTERNAL_ON_RESTORED
,
33 APP_CURRENT_WINDOW_INTERNAL_ON_WINDOW_SHOWN_FOR_TESTS
,
34 APP_RUNTIME_ON_EMBED_REQUESTED
,
35 APP_RUNTIME_ON_LAUNCHED
,
36 APP_RUNTIME_ON_RESTARTED
,
37 APP_WINDOW_ON_BOUNDS_CHANGED
,
39 APP_WINDOW_ON_FULLSCREENED
,
40 APP_WINDOW_ON_MAXIMIZED
,
41 APP_WINDOW_ON_MINIMIZED
,
42 APP_WINDOW_ON_RESTORED
,
43 AUDIO_MODEM_ON_RECEIVED
,
44 AUDIO_MODEM_ON_TRANSMIT_FAIL
,
45 AUDIO_ON_DEVICE_CHANGED
,
46 AUDIO_ON_DEVICES_CHANGED
,
47 AUDIO_ON_LEVEL_CHANGED
,
48 AUDIO_ON_MUTE_CHANGED
,
49 AUTOFILL_PRIVATE_ON_ADDRESS_LIST_CHANGED
,
50 AUTOFILL_PRIVATE_ON_CREDIT_CARD_LIST_CHANGED
,
51 AUTOMATION_INTERNAL_ON_ACCESSIBILITY_EVENT
,
52 AUTOMATION_INTERNAL_ON_ACCESSIBILITY_TREE_DESTROYED
,
53 BLUETOOTH_LOW_ENERGY_ON_CHARACTERISTIC_VALUE_CHANGED
,
54 BLUETOOTH_LOW_ENERGY_ON_DESCRIPTOR_VALUE_CHANGED
,
55 BLUETOOTH_LOW_ENERGY_ON_SERVICE_ADDED
,
56 BLUETOOTH_LOW_ENERGY_ON_SERVICE_CHANGED
,
57 BLUETOOTH_LOW_ENERGY_ON_SERVICE_REMOVED
,
58 BLUETOOTH_ON_ADAPTER_STATE_CHANGED
,
59 BLUETOOTH_ON_DEVICE_ADDED
,
60 BLUETOOTH_ON_DEVICE_CHANGED
,
61 BLUETOOTH_ON_DEVICE_REMOVED
,
62 BLUETOOTH_PRIVATE_ON_PAIRING
,
63 BLUETOOTH_SOCKET_ON_ACCEPT
,
64 BLUETOOTH_SOCKET_ON_ACCEPT_ERROR
,
65 BLUETOOTH_SOCKET_ON_RECEIVE
,
66 BLUETOOTH_SOCKET_ON_RECEIVE_ERROR
,
67 BOOKMARK_MANAGER_PRIVATE_ON_DRAG_ENTER
,
68 BOOKMARK_MANAGER_PRIVATE_ON_DRAG_LEAVE
,
69 BOOKMARK_MANAGER_PRIVATE_ON_DROP
,
70 BOOKMARK_MANAGER_PRIVATE_ON_META_INFO_CHANGED
,
72 BOOKMARKS_ON_CHILDREN_REORDERED
,
74 BOOKMARKS_ON_IMPORT_BEGAN
,
75 BOOKMARKS_ON_IMPORT_ENDED
,
78 BRAILLE_DISPLAY_PRIVATE_ON_DISPLAY_STATE_CHANGED
,
79 BRAILLE_DISPLAY_PRIVATE_ON_KEY_EVENT
,
80 BROWSER_ACTION_ON_CLICKED
,
81 CAST_STREAMING_RTP_STREAM_ON_ERROR
,
82 CAST_STREAMING_RTP_STREAM_ON_STARTED
,
83 CAST_STREAMING_RTP_STREAM_ON_STOPPED
,
85 CONTEXT_MENUS_INTERNAL_ON_CLICKED
,
86 CONTEXT_MENUS_ON_CLICKED
,
88 COPRESENCE_ON_MESSAGES_RECEIVED
,
89 COPRESENCE_ON_STATUS_UPDATED
,
90 COPRESENCE_PRIVATE_ON_CONFIG_AUDIO
,
91 COPRESENCE_PRIVATE_ON_DECODE_SAMPLES_REQUEST
,
92 COPRESENCE_PRIVATE_ON_ENCODE_TOKEN_REQUEST
,
95 DECLARATIVE_CONTENT_ON_PAGE_CHANGED
,
96 DECLARATIVE_WEB_REQUEST_ON_MESSAGE
,
97 DECLARATIVE_WEB_REQUEST_ON_REQUEST
,
98 DEVELOPER_PRIVATE_ON_ITEM_STATE_CHANGED
,
99 DEVELOPER_PRIVATE_ON_PROFILE_STATE_CHANGED
,
100 DEVTOOLS_INSPECTED_WINDOW_ON_RESOURCE_ADDED
,
101 DEVTOOLS_INSPECTED_WINDOW_ON_RESOURCE_CONTENT_COMMITTED
,
102 DEVTOOLS_NETWORK_ON_NAVIGATED
,
103 DEVTOOLS_NETWORK_ON_REQUEST_FINISHED
,
104 DOWNLOADS_ON_CHANGED
,
105 DOWNLOADS_ON_CREATED
,
106 DOWNLOADS_ON_DETERMINING_FILENAME
,
108 EASY_UNLOCK_PRIVATE_ON_START_AUTO_PAIRING
,
109 EASY_UNLOCK_PRIVATE_ON_USER_INFO_UPDATED
,
110 EXPERIENCE_SAMPLING_PRIVATE_ON_DECISION
,
111 EXPERIENCE_SAMPLING_PRIVATE_ON_DISPLAYED
,
112 EXPERIMENTAL_DEVTOOLS_CONSOLE_ON_MESSAGE_ADDED
,
113 EXTENSION_ON_REQUEST
,
114 EXTENSION_ON_REQUEST_EXTERNAL
,
115 EXTENSION_OPTIONS_INTERNAL_ON_CLOSE
,
116 EXTENSION_OPTIONS_INTERNAL_ON_LOAD
,
117 EXTENSION_OPTIONS_INTERNAL_ON_PREFERRED_SIZE_CHANGED
,
118 FEEDBACK_PRIVATE_ON_FEEDBACK_REQUESTED
,
119 FILE_BROWSER_HANDLER_ON_EXECUTE
,
120 FILE_MANAGER_PRIVATE_ON_COPY_PROGRESS
,
121 FILE_MANAGER_PRIVATE_ON_DEVICE_CHANGED
,
122 FILE_MANAGER_PRIVATE_ON_DIRECTORY_CHANGED
,
123 FILE_MANAGER_PRIVATE_ON_DRIVE_CONNECTION_STATUS_CHANGED
,
124 FILE_MANAGER_PRIVATE_ON_DRIVE_SYNC_ERROR
,
125 FILE_MANAGER_PRIVATE_ON_FILE_TRANSFERS_UPDATED
,
126 FILE_MANAGER_PRIVATE_ON_MOUNT_COMPLETED
,
127 FILE_MANAGER_PRIVATE_ON_PREFERENCES_CHANGED
,
128 FILE_SYSTEM_ON_VOLUME_LIST_CHANGED
,
129 FILE_SYSTEM_PROVIDER_ON_ABORT_REQUESTED
,
130 FILE_SYSTEM_PROVIDER_ON_ADD_WATCHER_REQUESTED
,
131 FILE_SYSTEM_PROVIDER_ON_CLOSE_FILE_REQUESTED
,
132 FILE_SYSTEM_PROVIDER_ON_CONFIGURE_REQUESTED
,
133 FILE_SYSTEM_PROVIDER_ON_COPY_ENTRY_REQUESTED
,
134 FILE_SYSTEM_PROVIDER_ON_CREATE_DIRECTORY_REQUESTED
,
135 FILE_SYSTEM_PROVIDER_ON_CREATE_FILE_REQUESTED
,
136 FILE_SYSTEM_PROVIDER_ON_DELETE_ENTRY_REQUESTED
,
137 FILE_SYSTEM_PROVIDER_ON_GET_METADATA_REQUESTED
,
138 FILE_SYSTEM_PROVIDER_ON_MOUNT_REQUESTED
,
139 FILE_SYSTEM_PROVIDER_ON_MOVE_ENTRY_REQUESTED
,
140 FILE_SYSTEM_PROVIDER_ON_OPEN_FILE_REQUESTED
,
141 FILE_SYSTEM_PROVIDER_ON_READ_DIRECTORY_REQUESTED
,
142 FILE_SYSTEM_PROVIDER_ON_READ_FILE_REQUESTED
,
143 FILE_SYSTEM_PROVIDER_ON_REMOVE_WATCHER_REQUESTED
,
144 FILE_SYSTEM_PROVIDER_ON_TRUNCATE_REQUESTED
,
145 FILE_SYSTEM_PROVIDER_ON_UNMOUNT_REQUESTED
,
146 FILE_SYSTEM_PROVIDER_ON_WRITE_FILE_REQUESTED
,
147 FONT_SETTINGS_ON_DEFAULT_FIXED_FONT_SIZE_CHANGED
,
148 FONT_SETTINGS_ON_DEFAULT_FONT_SIZE_CHANGED
,
149 FONT_SETTINGS_ON_FONT_CHANGED
,
150 FONT_SETTINGS_ON_MINIMUM_FONT_SIZE_CHANGED
,
151 GCD_PRIVATE_ON_DEVICE_REMOVED
,
152 GCD_PRIVATE_ON_DEVICE_STATE_CHANGED
,
154 GCM_ON_MESSAGES_DELETED
,
156 HANGOUTS_PRIVATE_ON_HANGOUT_REQUESTED
,
158 HID_ON_DEVICE_REMOVED
,
160 HISTORY_ON_VISIT_REMOVED
,
161 HOTWORD_PRIVATE_ON_DELETE_SPEAKER_MODEL
,
162 HOTWORD_PRIVATE_ON_ENABLED_CHANGED
,
163 HOTWORD_PRIVATE_ON_FINALIZE_SPEAKER_MODEL
,
164 HOTWORD_PRIVATE_ON_HOTWORD_SESSION_REQUESTED
,
165 HOTWORD_PRIVATE_ON_HOTWORD_SESSION_STOPPED
,
166 HOTWORD_PRIVATE_ON_HOTWORD_TRIGGERED
,
167 HOTWORD_PRIVATE_ON_MICROPHONE_STATE_CHANGED
,
168 HOTWORD_PRIVATE_ON_SPEAKER_MODEL_EXISTS
,
169 HOTWORD_PRIVATE_ON_SPEAKER_MODEL_SAVED
,
170 IDENTITY_ON_SIGN_IN_CHANGED
,
171 IDENTITY_PRIVATE_ON_WEB_FLOW_REQUEST
,
172 IDLE_ON_STATE_CHANGED
,
173 IMAGE_WRITER_PRIVATE_ON_DEVICE_INSERTED
,
174 IMAGE_WRITER_PRIVATE_ON_DEVICE_REMOVED
,
175 IMAGE_WRITER_PRIVATE_ON_WRITE_COMPLETE
,
176 IMAGE_WRITER_PRIVATE_ON_WRITE_ERROR
,
177 IMAGE_WRITER_PRIVATE_ON_WRITE_PROGRESS
,
178 INPUT_IME_ON_ACTIVATE
,
180 INPUT_IME_ON_CANDIDATE_CLICKED
,
181 INPUT_IME_ON_DEACTIVATED
,
183 INPUT_IME_ON_INPUT_CONTEXT_UPDATE
,
184 INPUT_IME_ON_KEY_EVENT
,
185 INPUT_IME_ON_MENU_ITEM_ACTIVATED
,
187 INPUT_IME_ON_SURROUNDING_TEXT_CHANGED
,
188 INPUT_METHOD_PRIVATE_ON_CHANGED
,
189 INPUT_METHOD_PRIVATE_ON_COMPOSITION_BOUNDS_CHANGED
,
190 INPUT_METHOD_PRIVATE_ON_DICTIONARY_CHANGED
,
191 INPUT_METHOD_PRIVATE_ON_DICTIONARY_LOADED
,
192 INSTANCE_ID_ON_TOKEN_REFRESH
,
193 LOCATION_ON_LOCATION_ERROR
,
194 LOCATION_ON_LOCATION_UPDATE
,
195 LOG_PRIVATE_ON_CAPTURED_EVENTS
,
196 MANAGEMENT_ON_DISABLED
,
197 MANAGEMENT_ON_ENABLED
,
198 MANAGEMENT_ON_INSTALLED
,
199 MANAGEMENT_ON_UNINSTALLED
,
200 MDNS_ON_SERVICE_LIST
,
201 MEDIA_GALLERIES_ON_GALLERY_CHANGED
,
202 MEDIA_GALLERIES_ON_SCAN_PROGRESS
,
203 MEDIA_PLAYER_PRIVATE_ON_NEXT_TRACK
,
204 MEDIA_PLAYER_PRIVATE_ON_PREV_TRACK
,
205 MEDIA_PLAYER_PRIVATE_ON_TOGGLE_PLAY_STATE
,
206 NETWORKING_CONFIG_ON_CAPTIVE_PORTAL_DETECTED
,
207 NETWORKING_PRIVATE_ON_DEVICE_STATE_LIST_CHANGED
,
208 NETWORKING_PRIVATE_ON_NETWORK_LIST_CHANGED
,
209 NETWORKING_PRIVATE_ON_NETWORKS_CHANGED
,
210 NETWORKING_PRIVATE_ON_PORTAL_DETECTION_COMPLETED
,
211 NOTIFICATION_PROVIDER_ON_CLEARED
,
212 NOTIFICATION_PROVIDER_ON_CREATED
,
213 NOTIFICATION_PROVIDER_ON_UPDATED
,
214 NOTIFICATIONS_ON_BUTTON_CLICKED
,
215 NOTIFICATIONS_ON_CLICKED
,
216 NOTIFICATIONS_ON_CLOSED
,
217 NOTIFICATIONS_ON_PERMISSION_LEVEL_CHANGED
,
218 NOTIFICATIONS_ON_SHOW_SETTINGS
,
219 OMNIBOX_ON_INPUT_CANCELLED
,
220 OMNIBOX_ON_INPUT_CHANGED
,
221 OMNIBOX_ON_INPUT_ENTERED
,
222 OMNIBOX_ON_INPUT_STARTED
,
223 PAGE_ACTION_ON_CLICKED
,
224 PASSWORDS_PRIVATE_ON_PASSWORD_EXCEPTIONS_LIST_CHANGED
,
225 PASSWORDS_PRIVATE_ON_PLAINTEXT_PASSWORD_RETRIEVED
,
226 PASSWORDS_PRIVATE_ON_SAVED_PASSWORDS_LIST_CHANGED
,
227 PERMISSIONS_ON_ADDED
,
228 PERMISSIONS_ON_REMOVED
,
229 PRINTER_PROVIDER_ON_GET_CAPABILITY_REQUESTED
,
230 PRINTER_PROVIDER_ON_GET_PRINTERS_REQUESTED
,
231 PRINTER_PROVIDER_ON_GET_USB_PRINTER_INFO_REQUESTED
,
232 PRINTER_PROVIDER_ON_PRINT_REQUESTED
,
233 PROCESSES_ON_CREATED
,
235 PROCESSES_ON_UNRESPONSIVE
,
236 PROCESSES_ON_UPDATED
,
237 PROCESSES_ON_UPDATED_WITH_MEMORY
,
238 PROXY_ON_PROXY_ERROR
,
239 RUNTIME_ON_BROWSER_UPDATE_AVAILABLE
,
241 RUNTIME_ON_CONNECT_EXTERNAL
,
242 RUNTIME_ON_INSTALLED
,
244 RUNTIME_ON_MESSAGE_EXTERNAL
,
245 RUNTIME_ON_RESTART_REQUIRED
,
248 RUNTIME_ON_SUSPEND_CANCELED
,
249 RUNTIME_ON_UPDATE_AVAILABLE
,
250 SEARCH_ENGINES_PRIVATE_ON_SEARCH_ENGINES_CHANGED
,
252 SERIAL_ON_RECEIVE_ERROR
,
254 SETTINGS_PRIVATE_ON_PREFS_CHANGED
,
255 SIGNED_IN_DEVICES_ON_DEVICE_INFO_CHANGE
,
256 SOCKETS_TCP_ON_RECEIVE
,
257 SOCKETS_TCP_ON_RECEIVE_ERROR
,
258 SOCKETS_TCP_SERVER_ON_ACCEPT
,
259 SOCKETS_TCP_SERVER_ON_ACCEPT_ERROR
,
260 SOCKETS_UDP_ON_RECEIVE
,
261 SOCKETS_UDP_ON_RECEIVE_ERROR
,
263 STREAMS_PRIVATE_ON_EXECUTE_MIME_TYPE_HANDLER
,
264 SYNC_FILE_SYSTEM_ON_FILE_STATUS_CHANGED
,
265 SYNC_FILE_SYSTEM_ON_SERVICE_STATUS_CHANGED
,
266 SYSTEM_DISPLAY_ON_DISPLAY_CHANGED
,
267 SYSTEM_INDICATOR_ON_CLICKED
,
268 SYSTEM_PRIVATE_ON_BRIGHTNESS_CHANGED
,
269 SYSTEM_PRIVATE_ON_SCREEN_UNLOCKED
,
270 SYSTEM_PRIVATE_ON_VOLUME_CHANGED
,
271 SYSTEM_PRIVATE_ON_WOKE_UP
,
272 SYSTEM_STORAGE_ON_ATTACHED
,
273 SYSTEM_STORAGE_ON_DETACHED
,
274 TAB_CAPTURE_ON_STATUS_CHANGED
,
276 TABS_ON_ACTIVE_CHANGED
,
280 TABS_ON_HIGHLIGHT_CHANGED
,
285 TABS_ON_SELECTION_CHANGED
,
288 TERMINAL_PRIVATE_ON_PROCESS_OUTPUT
,
291 TTS_ENGINE_ON_RESUME
,
295 USB_ON_DEVICE_REMOVED
,
296 VIRTUAL_KEYBOARD_PRIVATE_ON_BOUNDS_CHANGED
,
297 VIRTUAL_KEYBOARD_PRIVATE_ON_TEXT_INPUT_BOX_FOCUSED
,
298 VPN_PROVIDER_ON_CONFIG_CREATED
,
299 VPN_PROVIDER_ON_CONFIG_REMOVED
,
300 VPN_PROVIDER_ON_PACKET_RECEIVED
,
301 VPN_PROVIDER_ON_PLATFORM_MESSAGE
,
302 VPN_PROVIDER_ON_UI_EVENT
,
303 WALLPAPER_PRIVATE_ON_WALLPAPER_CHANGED_BY_3RD_PARTY
,
304 WEB_NAVIGATION_ON_BEFORE_NAVIGATE
,
305 WEB_NAVIGATION_ON_COMMITTED
,
306 WEB_NAVIGATION_ON_COMPLETED
,
307 WEB_NAVIGATION_ON_CREATED_NAVIGATION_TARGET
,
308 WEB_NAVIGATION_ON_DOM_CONTENT_LOADED
,
309 WEB_NAVIGATION_ON_ERROR_OCCURRED
,
310 WEB_NAVIGATION_ON_HISTORY_STATE_UPDATED
,
311 WEB_NAVIGATION_ON_REFERENCE_FRAGMENT_UPDATED
,
312 WEB_NAVIGATION_ON_TAB_REPLACED
,
313 WEB_REQUEST_ON_AUTH_REQUIRED
,
314 WEB_REQUEST_ON_BEFORE_REDIRECT
,
315 WEB_REQUEST_ON_BEFORE_REQUEST
,
316 WEB_REQUEST_ON_BEFORE_SEND_HEADERS
,
317 WEB_REQUEST_ON_COMPLETED
,
318 WEB_REQUEST_ON_ERROR_OCCURRED
,
319 WEB_REQUEST_ON_HEADERS_RECEIVED
,
320 WEB_REQUEST_ON_RESPONSE_STARTED
,
321 WEB_REQUEST_ON_SEND_HEADERS
,
322 WEBRTC_AUDIO_PRIVATE_ON_SINKS_CHANGED
,
323 WEBSTORE_ON_DOWNLOAD_PROGRESS
,
324 WEBSTORE_ON_INSTALL_STAGE_CHANGED
,
325 WEBSTORE_WIDGET_PRIVATE_ON_SHOW_WIDGET
,
327 WEBVIEW_TAG_CONSOLEMESSAGE
,
328 WEBVIEW_TAG_CONTENTLOAD
,
331 WEBVIEW_TAG_FINDUPDATE
,
332 WEBVIEW_TAG_LOADABORT
,
333 WEBVIEW_TAG_LOADCOMMIT
,
334 WEBVIEW_TAG_LOADREDIRECT
,
335 WEBVIEW_TAG_LOADSTART
,
336 WEBVIEW_TAG_LOADSTOP
,
337 WEBVIEW_TAG_NEWWINDOW
,
338 WEBVIEW_TAG_PERMISSIONREQUEST
,
339 WEBVIEW_TAG_RESPONSIVE
,
340 WEBVIEW_TAG_SIZECHANGED
,
341 WEBVIEW_TAG_UNRESPONSIVE
,
342 WEBVIEW_TAG_ZOOMCHANGE
,
344 WINDOWS_ON_FOCUS_CHANGED
,
346 FILE_SYSTEM_PROVIDER_ON_EXECUTE_ACTION_REQUESTED
,
347 FILE_SYSTEM_PROVIDER_ON_GET_ACTIONS_REQUESTED
,
348 LAUNCHER_SEARCH_PROVIDER_ON_QUERY_STARTED
,
349 LAUNCHER_SEARCH_PROVIDER_ON_QUERY_ENDED
,
350 LAUNCHER_SEARCH_PROVIDER_ON_OPEN_RESULT
,
351 CHROME_WEB_VIEW_INTERNAL_ON_CLICKED
,
352 WEB_VIEW_INTERNAL_CONTEXT_MENUS
,
355 LAUNCHER_PAGE_ON_TRANSITION_CHANGED
,
356 LAUNCHER_PAGE_ON_POP_SUBPAGE
,
359 CAST_CHANNEL_ON_MESSAGE
,
360 CAST_CHANNEL_ON_ERROR
,
361 SCREENLOCK_PRIVATE_ON_CHANGED
,
362 SCREENLOCK_PRIVATE_ON_AUTH_ATTEMPTED
,
363 TYPES_CHROME_SETTING_ON_CHANGE
,
364 TYPES_PRIVATE_CHROME_DIRECT_SETTING_ON_CHANGE
,
365 WEB_VIEW_INTERNAL_ON_MESSAGE
, // TODO(kalman): where are the rest of the
367 // Last entry: Add new entries above, then run:
368 // python tools/metrics/histograms/update_extension_histograms.py
372 } // namespace events
373 } // namespace extensions
375 #endif // EXTENSIONS_BROWSER_EXTENSION_EVENT_HISTOGRAM_VALUE_H_