| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/loader/DocumentLoadTiming.h" | 26 #include "core/loader/DocumentLoadTiming.h" |
| 27 | 27 |
| 28 #include "core/loader/DocumentLoader.h" | 28 #include "core/loader/DocumentLoader.h" |
| 29 #include "platform/instrumentation/tracing/TraceEvent.h" | 29 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 30 #include "platform/weborigin/SecurityOrigin.h" | 30 #include "platform/weborigin/SecurityOrigin.h" |
| 31 #include "wtf/RefPtr.h" | 31 #include "platform/wtf/RefPtr.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 DocumentLoadTiming::DocumentLoadTiming(DocumentLoader& document_loader) | 35 DocumentLoadTiming::DocumentLoadTiming(DocumentLoader& document_loader) |
| 36 : reference_monotonic_time_(0.0), | 36 : reference_monotonic_time_(0.0), |
| 37 reference_wall_time_(0.0), | 37 reference_wall_time_(0.0), |
| 38 navigation_start_(0.0), | 38 navigation_start_(0.0), |
| 39 unload_event_start_(0.0), | 39 unload_event_start_(0.0), |
| 40 unload_event_end_(0.0), | 40 unload_event_end_(0.0), |
| 41 redirect_start_(0.0), | 41 redirect_start_(0.0), |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 void DocumentLoadTiming::MarkRedirectEnd() { | 216 void DocumentLoadTiming::MarkRedirectEnd() { |
| 217 redirect_end_ = MonotonicallyIncreasingTime(); | 217 redirect_end_ = MonotonicallyIncreasingTime(); |
| 218 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "redirectEnd", | 218 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "redirectEnd", |
| 219 TraceEvent::ToTraceTimestamp(redirect_end_), | 219 TraceEvent::ToTraceTimestamp(redirect_end_), |
| 220 "frame", GetFrame()); | 220 "frame", GetFrame()); |
| 221 NotifyDocumentTimingChanged(); | 221 NotifyDocumentTimingChanged(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace blink | 224 } // namespace blink |
| OLD | NEW |