| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 *securityOrigin, context); | 380 *securityOrigin, context); |
| 381 | 381 |
| 382 unsigned long long transferSize = navigationTimingInfo->transferSize(); | 382 unsigned long long transferSize = navigationTimingInfo->transferSize(); |
| 383 unsigned long long encodedBodyLength = finalResponse.encodedBodyLength(); | 383 unsigned long long encodedBodyLength = finalResponse.encodedBodyLength(); |
| 384 unsigned long long decodedBodyLength = finalResponse.decodedBodyLength(); | 384 unsigned long long decodedBodyLength = finalResponse.decodedBodyLength(); |
| 385 bool didReuseConnection = finalResponse.connectionReused(); | 385 bool didReuseConnection = finalResponse.connectionReused(); |
| 386 PerformanceNavigationTiming::NavigationType type = | 386 PerformanceNavigationTiming::NavigationType type = |
| 387 getNavigationType(documentLoader->getNavigationType(), frame->document()); | 387 getNavigationType(documentLoader->getNavigationType(), frame->document()); |
| 388 | 388 |
| 389 m_navigationTiming = new PerformanceNavigationTiming( | 389 m_navigationTiming = new PerformanceNavigationTiming( |
| 390 timeOrigin(), documentLoadTiming.unloadEventStart(), | 390 timeOrigin(), navigationTimingInfo->initialURL().getString(), |
| 391 documentLoadTiming.unloadEventStart(), |
| 391 documentLoadTiming.unloadEventEnd(), documentLoadTiming.loadEventStart(), | 392 documentLoadTiming.unloadEventEnd(), documentLoadTiming.loadEventStart(), |
| 392 documentLoadTiming.loadEventEnd(), documentLoadTiming.redirectCount(), | 393 documentLoadTiming.loadEventEnd(), documentLoadTiming.redirectCount(), |
| 393 documentTiming ? documentTiming->domInteractive() : 0, | 394 documentTiming ? documentTiming->domInteractive() : 0, |
| 394 documentTiming ? documentTiming->domContentLoadedEventStart() : 0, | 395 documentTiming ? documentTiming->domContentLoadedEventStart() : 0, |
| 395 documentTiming ? documentTiming->domContentLoadedEventEnd() : 0, | 396 documentTiming ? documentTiming->domContentLoadedEventEnd() : 0, |
| 396 documentTiming ? documentTiming->domComplete() : 0, type, | 397 documentTiming ? documentTiming->domComplete() : 0, type, |
| 397 documentLoadTiming.redirectStart(), documentLoadTiming.redirectEnd(), | 398 documentLoadTiming.redirectStart(), documentLoadTiming.redirectEnd(), |
| 398 documentLoadTiming.fetchStart(), documentLoadTiming.responseEnd(), | 399 documentLoadTiming.fetchStart(), documentLoadTiming.responseEnd(), |
| 399 allowRedirectDetails, | 400 allowRedirectDetails, |
| 400 documentLoadTiming.hasSameOriginAsPreviousDocument(), resourceLoadTiming, | 401 documentLoadTiming.hasSameOriginAsPreviousDocument(), resourceLoadTiming, |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 visitor->trace(m_resourceTimingBuffer); | 598 visitor->trace(m_resourceTimingBuffer); |
| 598 visitor->trace(m_navigationTiming); | 599 visitor->trace(m_navigationTiming); |
| 599 visitor->trace(m_userTiming); | 600 visitor->trace(m_userTiming); |
| 600 visitor->trace(m_observers); | 601 visitor->trace(m_observers); |
| 601 visitor->trace(m_activeObservers); | 602 visitor->trace(m_activeObservers); |
| 602 visitor->trace(m_suspendedObservers); | 603 visitor->trace(m_suspendedObservers); |
| 603 EventTargetWithInlineData::trace(visitor); | 604 EventTargetWithInlineData::trace(visitor); |
| 604 } | 605 } |
| 605 | 606 |
| 606 } // namespace blink | 607 } // namespace blink |
| OLD | NEW |