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

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

Issue 2675973004: Update NT2 name to be the requested URL instead of 'document' (Closed)
Patch Set: fix failing wpt tests (imported after creation of this CL), and delete a redundant, old test Created 3 years, 10 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 | « third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "core/timing/PerformanceNavigationTiming.h" 5 #include "core/timing/PerformanceNavigationTiming.h"
6 6
7 #include "bindings/core/v8/V8ObjectBuilder.h" 7 #include "bindings/core/v8/V8ObjectBuilder.h"
8 #include "core/timing/PerformanceBase.h" 8 #include "core/timing/PerformanceBase.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 PerformanceNavigationTiming::PerformanceNavigationTiming( 12 PerformanceNavigationTiming::PerformanceNavigationTiming(
13 double timeOrigin, 13 double timeOrigin,
14 const String& requestedUrl,
14 double unloadEventStart, 15 double unloadEventStart,
15 double unloadEventEnd, 16 double unloadEventEnd,
16 double loadEventStart, 17 double loadEventStart,
17 double loadEventEnd, 18 double loadEventEnd,
18 unsigned short redirectCount, 19 unsigned short redirectCount,
19 double domInteractive, 20 double domInteractive,
20 double domContentLoadedEventStart, 21 double domContentLoadedEventStart,
21 double domContentLoadedEventEnd, 22 double domContentLoadedEventEnd,
22 double domComplete, 23 double domComplete,
23 NavigationType type, 24 NavigationType type,
(...skipping 16 matching lines...) Expand all
40 lastRedirectEndTime, 41 lastRedirectEndTime,
41 finishTime, 42 finishTime,
42 transferSize, 43 transferSize,
43 encodedBodyLength, 44 encodedBodyLength,
44 decodedBodyLength, 45 decodedBodyLength,
45 didReuseConnection, 46 didReuseConnection,
46 true /*allowTimingDetails*/, // TODO(sunjian): 47 true /*allowTimingDetails*/, // TODO(sunjian):
47 // Create an enum 48 // Create an enum
48 // for this. 49 // for this.
49 allowRedirectDetails, 50 allowRedirectDetails,
50 "document", 51 requestedUrl,
51 "navigation", 52 "navigation",
52 timeOrigin), 53 timeOrigin),
53 m_timeOrigin(timeOrigin), 54 m_timeOrigin(timeOrigin),
54 m_unloadEventStart(unloadEventStart), 55 m_unloadEventStart(unloadEventStart),
55 m_unloadEventEnd(unloadEventEnd), 56 m_unloadEventEnd(unloadEventEnd),
56 m_loadEventStart(loadEventStart), 57 m_loadEventStart(loadEventStart),
57 m_loadEventEnd(loadEventEnd), 58 m_loadEventEnd(loadEventEnd),
58 m_redirectCount(redirectCount), 59 m_redirectCount(redirectCount),
59 m_domInteractive(domInteractive), 60 m_domInteractive(domInteractive),
60 m_domContentLoadedEventStart(domContentLoadedEventStart), 61 m_domContentLoadedEventStart(domContentLoadedEventStart),
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 builder.addNumber("domInteractive", domInteractive()); 171 builder.addNumber("domInteractive", domInteractive());
171 builder.addNumber("domContentLoadedEventStart", domContentLoadedEventStart()); 172 builder.addNumber("domContentLoadedEventStart", domContentLoadedEventStart());
172 builder.addNumber("domContentLoadedEventEnd", domContentLoadedEventEnd()); 173 builder.addNumber("domContentLoadedEventEnd", domContentLoadedEventEnd());
173 builder.addNumber("domComplete", domComplete()); 174 builder.addNumber("domComplete", domComplete());
174 builder.addNumber("loadEventStart", loadEventStart()); 175 builder.addNumber("loadEventStart", loadEventStart());
175 builder.addNumber("loadEventEnd", loadEventEnd()); 176 builder.addNumber("loadEventEnd", loadEventEnd());
176 builder.addString("type", type()); 177 builder.addString("type", type());
177 builder.addNumber("redirectCount", redirectCount()); 178 builder.addNumber("redirectCount", redirectCount());
178 } 179 }
179 } 180 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698