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

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

Issue 2393013002: reflow comments in core/{clipboard,streams,testing,timing} (Closed)
Patch Set: comments (heh!) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 m_timing->sendStart()); 198 m_timing->sendStart());
199 } 199 }
200 200
201 double PerformanceResourceTiming::responseStart() const { 201 double PerformanceResourceTiming::responseStart() const {
202 if (!m_allowTimingDetails) 202 if (!m_allowTimingDetails)
203 return 0.0; 203 return 0.0;
204 204
205 if (!m_timing) 205 if (!m_timing)
206 return requestStart(); 206 return requestStart();
207 207
208 // FIXME: This number isn't exactly correct. See the notes in PerformanceTimin g::responseStart(). 208 // FIXME: This number isn't exactly correct. See the notes in
209 // PerformanceTiming::responseStart().
209 return monotonicTimeToDOMHighResTimeStamp(m_timeOrigin, 210 return monotonicTimeToDOMHighResTimeStamp(m_timeOrigin,
210 m_timing->receiveHeadersEnd()); 211 m_timing->receiveHeadersEnd());
211 } 212 }
212 213
213 double PerformanceResourceTiming::responseEnd() const { 214 double PerformanceResourceTiming::responseEnd() const {
214 if (!m_finishTime) 215 if (!m_finishTime)
215 return responseStart(); 216 return responseStart();
216 217
217 return monotonicTimeToDOMHighResTimeStamp(m_timeOrigin, m_finishTime); 218 return monotonicTimeToDOMHighResTimeStamp(m_timeOrigin, m_finishTime);
218 } 219 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 builder.addNumber("secureConnectionStart", secureConnectionStart()); 253 builder.addNumber("secureConnectionStart", secureConnectionStart());
253 builder.addNumber("requestStart", requestStart()); 254 builder.addNumber("requestStart", requestStart());
254 builder.addNumber("responseStart", responseStart()); 255 builder.addNumber("responseStart", responseStart());
255 builder.addNumber("responseEnd", responseEnd()); 256 builder.addNumber("responseEnd", responseEnd());
256 builder.addNumber("transferSize", transferSize()); 257 builder.addNumber("transferSize", transferSize());
257 builder.addNumber("encodedBodySize", encodedBodySize()); 258 builder.addNumber("encodedBodySize", encodedBodySize());
258 builder.addNumber("decodedBodySize", decodedBodySize()); 259 builder.addNumber("decodedBodySize", decodedBodySize());
259 } 260 }
260 261
261 } // namespace blink 262 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/MemoryInfo.cpp ('k') | third_party/WebKit/Source/core/timing/PerformanceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698