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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_constants.cc

Issue 1272373003: Add extension event histogram values for messaging, webRequest, and webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last Created 5 years, 4 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
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_constants.h ('k') | extensions/extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/browser/guest_view/web_view/web_view_constants.h" 5 #include "extensions/browser/guest_view/web_view/web_view_constants.h"
6 6
7 namespace webview { 7 namespace webview {
8 8
9 // Attributes. 9 // Attributes.
10 const char kAttributeAllowTransparency[] = "allowtransparency"; 10 const char kAttributeAllowTransparency[] = "allowtransparency";
11 const char kAttributeAllowScaling[] = "allowscaling"; 11 const char kAttributeAllowScaling[] = "allowscaling";
12 const char kAttributeName[] = "name"; 12 const char kAttributeName[] = "name";
13 const char kAttributeSrc[] = "src"; 13 const char kAttributeSrc[] = "src";
14 14
15 // API namespace. 15 // API namespace.
16 const char kAPINamespace[] = "webViewInternal"; 16 const char kAPINamespace[] = "webViewInternal";
17 17
18 // API error messages. 18 // API error messages.
19 const char kAPILoadDataInvalidDataURL[] = "Invalid data URL \"%s\"."; 19 const char kAPILoadDataInvalidDataURL[] = "Invalid data URL \"%s\".";
20 const char kAPILoadDataInvalidBaseURL[] = "Invalid base URL \"%s\"."; 20 const char kAPILoadDataInvalidBaseURL[] = "Invalid base URL \"%s\".";
21 const char kAPILoadDataInvalidVirtualURL[] = "Invalid virtual URL \"%s\"."; 21 const char kAPILoadDataInvalidVirtualURL[] = "Invalid virtual URL \"%s\".";
22 22
23 // Events. 23 // Events.
24 const char kEventBeforeRequest[] = "webViewInternal.onBeforeRequest";
25 const char kEventBeforeSendHeaders[] = "webViewInternal.onBeforeSendHeaders";
24 const char kEventClose[] = "webViewInternal.onClose"; 26 const char kEventClose[] = "webViewInternal.onClose";
27 const char kEventCompleted[] = "webViewInternal.onCompleted";
25 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage"; 28 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage";
26 const char kEventContentLoad[] = "webViewInternal.onContentLoad"; 29 const char kEventContentLoad[] = "webViewInternal.onContentLoad";
27 const char kEventContextMenuShow[] = "chromeWebViewInternal.onContextMenuShow"; 30 const char kEventContextMenuShow[] = "chromeWebViewInternal.onContextMenuShow";
28 const char kEventDialog[] = "webViewInternal.onDialog"; 31 const char kEventDialog[] = "webViewInternal.onDialog";
29 const char kEventDropLink[] = "webViewInternal.onDropLink"; 32 const char kEventDropLink[] = "webViewInternal.onDropLink";
30 const char kEventExit[] = "webViewInternal.onExit"; 33 const char kEventExit[] = "webViewInternal.onExit";
31 const char kEventExitFullscreen[] = "webViewInternal.onExitFullscreen"; 34 const char kEventExitFullscreen[] = "webViewInternal.onExitFullscreen";
32 const char kEventFindReply[] = "webViewInternal.onFindReply"; 35 const char kEventFindReply[] = "webViewInternal.onFindReply";
33 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged"; 36 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged";
37 const char kEventHeadersReceived[] = "webViewInternal.onHeadersReceived";
34 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort"; 38 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort";
35 const char kEventLoadCommit[] = "webViewInternal.onLoadCommit"; 39 const char kEventLoadCommit[] = "webViewInternal.onLoadCommit";
36 const char kEventLoadProgress[] = "webViewInternal.onLoadProgress"; 40 const char kEventLoadProgress[] = "webViewInternal.onLoadProgress";
37 const char kEventLoadRedirect[] = "webViewInternal.onLoadRedirect"; 41 const char kEventLoadRedirect[] = "webViewInternal.onLoadRedirect";
38 const char kEventLoadStart[] = "webViewInternal.onLoadStart"; 42 const char kEventLoadStart[] = "webViewInternal.onLoadStart";
39 const char kEventLoadStop[] = "webViewInternal.onLoadStop"; 43 const char kEventLoadStop[] = "webViewInternal.onLoadStop";
40 const char kEventMessage[] = "webViewInternal.onMessage"; 44 const char kEventMessage[] = "webViewInternal.onMessage";
41 const char kEventNewWindow[] = "webViewInternal.onNewWindow"; 45 const char kEventNewWindow[] = "webViewInternal.onNewWindow";
42 const char kEventPermissionRequest[] = "webViewInternal.onPermissionRequest"; 46 const char kEventPermissionRequest[] = "webViewInternal.onPermissionRequest";
47 const char kEventResponseStarted[] = "webViewInternal.onResponseStarted";
43 const char kEventResponsive[] = "webViewInternal.onResponsive"; 48 const char kEventResponsive[] = "webViewInternal.onResponsive";
44 const char kEventSizeChanged[] = "webViewInternal.onSizeChanged"; 49 const char kEventSizeChanged[] = "webViewInternal.onSizeChanged";
45 const char kEventUnresponsive[] = "webViewInternal.onUnresponsive"; 50 const char kEventUnresponsive[] = "webViewInternal.onUnresponsive";
46 const char kEventZoomChange[] = "webViewInternal.onZoomChange"; 51 const char kEventZoomChange[] = "webViewInternal.onZoomChange";
47 52
48 // Event related constants. 53 // Event related constants.
49 const char kWebViewEventPrefix[] = "webViewInternal."; 54 const char kWebViewEventPrefix[] = "webViewInternal.";
50 55
51 // Parameters/properties on events. 56 // Parameters/properties on events.
52 const char kContextMenuItems[] = "items"; 57 const char kContextMenuItems[] = "items";
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES = 1 << 2; 130 const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES = 1 << 2;
126 const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 3; 131 const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 3;
127 const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB = 1 << 4; 132 const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB = 1 << 4;
128 const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 5; 133 const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 5;
129 const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL = 1 << 6; 134 const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL = 1 << 6;
130 135
131 // Other. 136 // Other.
132 const char kWebViewContentScriptManagerKeyName[] = 137 const char kWebViewContentScriptManagerKeyName[] =
133 "web_view_content_script_manager"; 138 "web_view_content_script_manager";
134 } // namespace webview 139 } // namespace webview
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_constants.h ('k') | extensions/extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698