Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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. | |
| 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 is just a placeholder to indicate the count of types. | |
| 46 kFrameLoadTypeCount | |
|
tdresser
2017/06/12 20:54:19
I think
kFrameLoadTypeLast = kFrameLoadTypeReload
Liquan (Max) Gu
2017/06/12 21:51:31
Yes it does. Thanks!
| |
| 43 }; | 47 }; |
| 44 | 48 |
| 45 enum NavigationType { | 49 enum NavigationType { |
| 46 kNavigationTypeLinkClicked, | 50 kNavigationTypeLinkClicked, |
| 47 kNavigationTypeFormSubmitted, | 51 kNavigationTypeFormSubmitted, |
| 48 kNavigationTypeBackForward, | 52 kNavigationTypeBackForward, |
| 49 kNavigationTypeReload, | 53 kNavigationTypeReload, |
| 50 kNavigationTypeFormResubmitted, | 54 kNavigationTypeFormResubmitted, |
| 51 kNavigationTypeOther | 55 kNavigationTypeOther |
| 52 }; | 56 }; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 enum class ProgressBarCompletion { | 101 enum class ProgressBarCompletion { |
| 98 kLoadEvent, | 102 kLoadEvent, |
| 99 kResourcesBeforeDCL, | 103 kResourcesBeforeDCL, |
| 100 kDOMContentLoaded, | 104 kDOMContentLoaded, |
| 101 kResourcesBeforeDCLAndSameOriginIFrames | 105 kResourcesBeforeDCLAndSameOriginIFrames |
| 102 }; | 106 }; |
| 103 | 107 |
| 104 } // namespace blink | 108 } // namespace blink |
| 105 | 109 |
| 106 #endif | 110 #endif |
| OLD | NEW |