| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 , m_fetchStart(0.0) | 45 , m_fetchStart(0.0) |
| 46 , m_responseEnd(0.0) | 46 , m_responseEnd(0.0) |
| 47 , m_loadEventStart(0.0) | 47 , m_loadEventStart(0.0) |
| 48 , m_loadEventEnd(0.0) | 48 , m_loadEventEnd(0.0) |
| 49 , m_hasCrossOriginRedirect(false) | 49 , m_hasCrossOriginRedirect(false) |
| 50 , m_hasSameOriginAsPreviousDocument(false) | 50 , m_hasSameOriginAsPreviousDocument(false) |
| 51 , m_documentLoader(documentLoader) | 51 , m_documentLoader(documentLoader) |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 DEFINE_TRACE(DocumentLoadTiming) |
| 56 { |
| 57 visitor->trace(m_documentLoader); |
| 58 } |
| 59 |
| 55 void DocumentLoadTiming::notifyDocumentTimingChanged() | 60 void DocumentLoadTiming::notifyDocumentTimingChanged() |
| 56 { | 61 { |
| 57 if (m_documentLoader) | 62 if (m_documentLoader) |
| 58 m_documentLoader->didChangePerformanceTiming(); | 63 m_documentLoader->didChangePerformanceTiming(); |
| 59 } | 64 } |
| 60 | 65 |
| 61 double DocumentLoadTiming::monotonicTimeToZeroBasedDocumentTime(double monotonic
Time) const | 66 double DocumentLoadTiming::monotonicTimeToZeroBasedDocumentTime(double monotonic
Time) const |
| 62 { | 67 { |
| 63 if (!monotonicTime) | 68 if (!monotonicTime) |
| 64 return 0.0; | 69 return 0.0; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 173 } |
| 169 | 174 |
| 170 void DocumentLoadTiming::markRedirectEnd() | 175 void DocumentLoadTiming::markRedirectEnd() |
| 171 { | 176 { |
| 172 TRACE_EVENT_MARK("blink.user_timing", "redirectEnd"); | 177 TRACE_EVENT_MARK("blink.user_timing", "redirectEnd"); |
| 173 m_redirectEnd = monotonicallyIncreasingTime(); | 178 m_redirectEnd = monotonicallyIncreasingTime(); |
| 174 notifyDocumentTimingChanged(); | 179 notifyDocumentTimingChanged(); |
| 175 } | 180 } |
| 176 | 181 |
| 177 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |