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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderTypes.h

Issue 2936723002: Report frequency of single page app navigations to UMA (Closed)
Patch Set: update histograms.xml Created 3 years, 6 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 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef FrameLoaderTypes_h 29 #ifndef FrameLoaderTypes_h
30 #define FrameLoaderTypes_h 30 #define FrameLoaderTypes_h
31 31
32 namespace blink { 32 namespace blink {
33 33
34 // See WebFrameLoadType in public/web/WebFrameLoadType.h for details. 34 // See WebFrameLoadType in public/web/WebFrameLoadType.h for details.
35 // These values are used for UMA histogram. New enum values can be added, but
36 // existing enums must never be renumbered or deleted and reused.
Nate Chapin 2017/06/14 18:10:50 Please don't use this enum directly for UMAs. It's
Liquan (Max) Gu 2017/06/20 23:35:39 Done.
35 enum FrameLoadType { 37 enum FrameLoadType {
36 kFrameLoadTypeStandard, 38 kFrameLoadTypeStandard = 0,
37 kFrameLoadTypeBackForward, 39 kFrameLoadTypeBackForward = 1,
38 kFrameLoadTypeReload, 40 kFrameLoadTypeReload = 2,
39 kFrameLoadTypeReplaceCurrentItem, 41 kFrameLoadTypeReplaceCurrentItem = 3,
40 kFrameLoadTypeInitialInChildFrame, 42 kFrameLoadTypeInitialInChildFrame = 4,
41 kFrameLoadTypeInitialHistoryLoad, 43 kFrameLoadTypeInitialHistoryLoad = 5,
42 kFrameLoadTypeReloadBypassingCache, 44 kFrameLoadTypeReloadBypassingCache = 6,
45 kFrameLoadTypeCount = kFrameLoadTypeReloadBypassingCache
43 }; 46 };
44 47
45 enum NavigationType { 48 enum NavigationType {
46 kNavigationTypeLinkClicked, 49 kNavigationTypeLinkClicked,
47 kNavigationTypeFormSubmitted, 50 kNavigationTypeFormSubmitted,
48 kNavigationTypeBackForward, 51 kNavigationTypeBackForward,
49 kNavigationTypeReload, 52 kNavigationTypeReload,
50 kNavigationTypeFormResubmitted, 53 kNavigationTypeFormResubmitted,
51 kNavigationTypeOther 54 kNavigationTypeOther
52 }; 55 };
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 enum class ProgressBarCompletion { 100 enum class ProgressBarCompletion {
98 kLoadEvent, 101 kLoadEvent,
99 kResourcesBeforeDCL, 102 kResourcesBeforeDCL,
100 kDOMContentLoaded, 103 kDOMContentLoaded,
101 kResourcesBeforeDCLAndSameOriginIFrames 104 kResourcesBeforeDCLAndSameOriginIFrames
102 }; 105 };
103 106
104 } // namespace blink 107 } // namespace blink
105 108
106 #endif 109 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698