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

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

Issue 2582863002: fixed encodedBodySize/decodedBodySize/name/initiatorType for nav timing 2 (Closed)
Patch Set: made corresponding changes to one layout test Created 3 years, 11 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/PerformanceBase.cpp ('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 {
(...skipping 16 matching lines...) Expand all
27 double responseEnd, 27 double responseEnd,
28 bool allowRedirectDetails, 28 bool allowRedirectDetails,
29 bool hasSameOriginAsPreviousDocument, 29 bool hasSameOriginAsPreviousDocument,
30 ResourceLoadTiming* timing, 30 ResourceLoadTiming* timing,
31 double lastRedirectEndTime, 31 double lastRedirectEndTime,
32 double finishTime, 32 double finishTime,
33 unsigned long long transferSize, 33 unsigned long long transferSize,
34 unsigned long long encodedBodyLength, 34 unsigned long long encodedBodyLength,
35 unsigned long long decodedBodyLength, 35 unsigned long long decodedBodyLength,
36 bool didReuseConnection) 36 bool didReuseConnection)
37 : PerformanceResourceTiming("", 37 : PerformanceResourceTiming("navigation",
38 timeOrigin, 38 timeOrigin,
39 timing, 39 timing,
40 lastRedirectEndTime, 40 lastRedirectEndTime,
41 finishTime, 41 finishTime,
42 transferSize, 42 transferSize,
43 encodedBodyLength, 43 encodedBodyLength,
44 decodedBodyLength, 44 decodedBodyLength,
45 didReuseConnection, 45 didReuseConnection,
46 true /*allowTimingDetails*/, // TODO(sunjian): 46 true /*allowTimingDetails*/, // TODO(sunjian):
47 // Create an enum 47 // Create an enum
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 builder.addNumber("domInteractive", domInteractive()); 170 builder.addNumber("domInteractive", domInteractive());
171 builder.addNumber("domContentLoadedEventStart", domContentLoadedEventStart()); 171 builder.addNumber("domContentLoadedEventStart", domContentLoadedEventStart());
172 builder.addNumber("domContentLoadedEventEnd", domContentLoadedEventEnd()); 172 builder.addNumber("domContentLoadedEventEnd", domContentLoadedEventEnd());
173 builder.addNumber("domComplete", domComplete()); 173 builder.addNumber("domComplete", domComplete());
174 builder.addNumber("loadEventStart", loadEventStart()); 174 builder.addNumber("loadEventStart", loadEventStart());
175 builder.addNumber("loadEventEnd", loadEventEnd()); 175 builder.addNumber("loadEventEnd", loadEventEnd());
176 builder.addString("type", type()); 176 builder.addString("type", type());
177 builder.addNumber("redirectCount", redirectCount()); 177 builder.addNumber("redirectCount", redirectCount());
178 } 178 }
179 } 179 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698