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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h

Issue 2509143002: Add Prerender type to NavigationType for nav timing 2 (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef PerformanceNavigationTiming_h 5 #ifndef PerformanceNavigationTiming_h
6 #define PerformanceNavigationTiming_h 6 #define PerformanceNavigationTiming_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/loader/FrameLoaderTypes.h" 9 #include "core/loader/FrameLoaderTypes.h"
10 #include "core/timing/PerformanceResourceTiming.h" 10 #include "core/timing/PerformanceResourceTiming.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CORE_EXPORT PerformanceNavigationTiming final 14 class CORE_EXPORT PerformanceNavigationTiming final
15 : public PerformanceResourceTiming { 15 : public PerformanceResourceTiming {
16 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
17 17
18 public: 18 public:
19 enum PerformanceNavigationType {
20 KTypeNavigate,
21 KTypeReload,
22 KTypeBackForward,
23 KTypePrerender
kinuko 2016/11/22 03:05:22 'PerformanceNavigationType' sounds a little odd (w
sunjian 2016/11/22 22:04:42 Done.
24 };
Yoav Weiss 2016/11/22 10:46:32 A nearly identical enum is already defined (but no
sunjian 2016/11/22 22:04:42 Agree. That's why i named this new enum differentl
25
19 PerformanceNavigationTiming(double timeOrigin, 26 PerformanceNavigationTiming(double timeOrigin,
20 double unloadEventStart, 27 double unloadEventStart,
21 double unloadEventEnd, 28 double unloadEventEnd,
22 double loadEventStart, 29 double loadEventStart,
23 double loadEventEnd, 30 double loadEventEnd,
24 unsigned short redirectCount, 31 unsigned short redirectCount,
25 double domInteractive, 32 double domInteractive,
26 double domContentLoadedEventStart, 33 double domContentLoadedEventStart,
27 double domContentLoadedEventEnd, 34 double domContentLoadedEventEnd,
28 double domComplete, 35 double domComplete,
29 NavigationType, 36 PerformanceNavigationType,
30 double redirectStart, 37 double redirectStart,
31 double redirectEnd, 38 double redirectEnd,
32 double fetchStart, 39 double fetchStart,
33 double responseEnd, 40 double responseEnd,
34 bool hasCrossOriginRedirect, 41 bool hasCrossOriginRedirect,
35 bool hasSameOriginAsPreviousDocument, 42 bool hasSameOriginAsPreviousDocument,
36 ResourceLoadTiming*, 43 ResourceLoadTiming*,
37 double lastRedirectEndTime, 44 double lastRedirectEndTime,
38 double finishTime, 45 double finishTime,
39 unsigned long long transferSize, 46 unsigned long long transferSize,
(...skipping 27 matching lines...) Expand all
67 double m_timeOrigin; 74 double m_timeOrigin;
68 double m_unloadEventStart; 75 double m_unloadEventStart;
69 double m_unloadEventEnd; 76 double m_unloadEventEnd;
70 double m_loadEventStart; 77 double m_loadEventStart;
71 double m_loadEventEnd; 78 double m_loadEventEnd;
72 unsigned short m_redirectCount; 79 unsigned short m_redirectCount;
73 double m_domInteractive; 80 double m_domInteractive;
74 double m_domContentLoadedEventStart; 81 double m_domContentLoadedEventStart;
75 double m_domContentLoadedEventEnd; 82 double m_domContentLoadedEventEnd;
76 double m_domComplete; 83 double m_domComplete;
77 NavigationType m_type; 84 PerformanceNavigationType m_type;
78 double m_redirectStart; 85 double m_redirectStart;
79 double m_redirectEnd; 86 double m_redirectEnd;
80 double m_fetchStart; 87 double m_fetchStart;
81 double m_responseEnd; 88 double m_responseEnd;
82 bool m_hasCrossOriginRedirect; 89 bool m_hasCrossOriginRedirect;
83 bool m_hasSameOriginAsPreviousDocument; 90 bool m_hasSameOriginAsPreviousDocument;
84 }; 91 };
85 } // namespace blink 92 } // namespace blink
86 93
87 #endif // PerformanceNavigationTiming_h 94 #endif // PerformanceNavigationTiming_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698