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

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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Rebase Created 4 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 PerformanceResourceTiming::PerformanceResourceTiming( 51 PerformanceResourceTiming::PerformanceResourceTiming(
52 const ResourceTimingInfo& info, 52 const ResourceTimingInfo& info,
53 double timeOrigin, 53 double timeOrigin,
54 double startTime, 54 double startTime,
55 double lastRedirectEndTime, 55 double lastRedirectEndTime,
56 bool allowTimingDetails, 56 bool allowTimingDetails,
57 bool allowRedirectDetails) 57 bool allowRedirectDetails)
58 : PerformanceEntry( 58 : PerformanceEntry(
59 info.initialRequest().url().getString(), 59 info.initialURL().getString(),
60 "resource", 60 "resource",
61 monotonicTimeToDOMHighResTimeStamp(timeOrigin, startTime), 61 monotonicTimeToDOMHighResTimeStamp(timeOrigin, startTime),
62 monotonicTimeToDOMHighResTimeStamp(timeOrigin, 62 monotonicTimeToDOMHighResTimeStamp(timeOrigin,
63 info.loadFinishTime())), 63 info.loadFinishTime())),
64 m_initiatorType(info.initiatorType()), 64 m_initiatorType(info.initiatorType()),
65 m_timeOrigin(timeOrigin), 65 m_timeOrigin(timeOrigin),
66 m_timing(info.finalResponse().resourceLoadTiming()), 66 m_timing(info.finalResponse().resourceLoadTiming()),
67 m_lastRedirectEndTime(lastRedirectEndTime), 67 m_lastRedirectEndTime(lastRedirectEndTime),
68 m_finishTime(info.loadFinishTime()), 68 m_finishTime(info.loadFinishTime()),
69 m_transferSize(info.transferSize()), 69 m_transferSize(info.transferSize()),
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 builder.addNumber("secureConnectionStart", secureConnectionStart()); 252 builder.addNumber("secureConnectionStart", secureConnectionStart());
253 builder.addNumber("requestStart", requestStart()); 253 builder.addNumber("requestStart", requestStart());
254 builder.addNumber("responseStart", responseStart()); 254 builder.addNumber("responseStart", responseStart());
255 builder.addNumber("responseEnd", responseEnd()); 255 builder.addNumber("responseEnd", responseEnd());
256 builder.addNumber("transferSize", transferSize()); 256 builder.addNumber("transferSize", transferSize());
257 builder.addNumber("encodedBodySize", encodedBodySize()); 257 builder.addNumber("encodedBodySize", encodedBodySize());
258 builder.addNumber("decodedBodySize", decodedBodySize()); 258 builder.addNumber("decodedBodySize", decodedBodySize());
259 } 259 }
260 260
261 } // namespace blink 261 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/platform/exported/WebURLRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698