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

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

Issue 2675973004: Update NT2 name to be the requested URL instead of 'document' (Closed)
Patch Set: fix failing wpt tests (imported after creation of this CL), and delete a redundant, old test Created 3 years, 10 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) 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 *securityOrigin, context); 382 *securityOrigin, context);
383 383
384 unsigned long long transferSize = navigationTimingInfo->transferSize(); 384 unsigned long long transferSize = navigationTimingInfo->transferSize();
385 unsigned long long encodedBodyLength = finalResponse.encodedBodyLength(); 385 unsigned long long encodedBodyLength = finalResponse.encodedBodyLength();
386 unsigned long long decodedBodyLength = finalResponse.decodedBodyLength(); 386 unsigned long long decodedBodyLength = finalResponse.decodedBodyLength();
387 bool didReuseConnection = finalResponse.connectionReused(); 387 bool didReuseConnection = finalResponse.connectionReused();
388 PerformanceNavigationTiming::NavigationType type = 388 PerformanceNavigationTiming::NavigationType type =
389 getNavigationType(documentLoader->getNavigationType(), frame->document()); 389 getNavigationType(documentLoader->getNavigationType(), frame->document());
390 390
391 m_navigationTiming = new PerformanceNavigationTiming( 391 m_navigationTiming = new PerformanceNavigationTiming(
392 timeOrigin(), documentLoadTiming.unloadEventStart(), 392 timeOrigin(), navigationTimingInfo->initialURL().getString(),
393 documentLoadTiming.unloadEventStart(),
393 documentLoadTiming.unloadEventEnd(), documentLoadTiming.loadEventStart(), 394 documentLoadTiming.unloadEventEnd(), documentLoadTiming.loadEventStart(),
394 documentLoadTiming.loadEventEnd(), documentLoadTiming.redirectCount(), 395 documentLoadTiming.loadEventEnd(), documentLoadTiming.redirectCount(),
395 documentTiming ? documentTiming->domInteractive() : 0, 396 documentTiming ? documentTiming->domInteractive() : 0,
396 documentTiming ? documentTiming->domContentLoadedEventStart() : 0, 397 documentTiming ? documentTiming->domContentLoadedEventStart() : 0,
397 documentTiming ? documentTiming->domContentLoadedEventEnd() : 0, 398 documentTiming ? documentTiming->domContentLoadedEventEnd() : 0,
398 documentTiming ? documentTiming->domComplete() : 0, type, 399 documentTiming ? documentTiming->domComplete() : 0, type,
399 documentLoadTiming.redirectStart(), documentLoadTiming.redirectEnd(), 400 documentLoadTiming.redirectStart(), documentLoadTiming.redirectEnd(),
400 documentLoadTiming.fetchStart(), documentLoadTiming.responseEnd(), 401 documentLoadTiming.fetchStart(), documentLoadTiming.responseEnd(),
401 allowRedirectDetails, 402 allowRedirectDetails,
402 documentLoadTiming.hasSameOriginAsPreviousDocument(), resourceLoadTiming, 403 documentLoadTiming.hasSameOriginAsPreviousDocument(), resourceLoadTiming,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 visitor->trace(m_resourceTimingBuffer); 601 visitor->trace(m_resourceTimingBuffer);
601 visitor->trace(m_navigationTiming); 602 visitor->trace(m_navigationTiming);
602 visitor->trace(m_userTiming); 603 visitor->trace(m_userTiming);
603 visitor->trace(m_observers); 604 visitor->trace(m_observers);
604 visitor->trace(m_activeObservers); 605 visitor->trace(m_activeObservers);
605 visitor->trace(m_suspendedObservers); 606 visitor->trace(m_suspendedObservers);
606 EventTargetWithInlineData::trace(visitor); 607 EventTargetWithInlineData::trace(visitor);
607 } 608 }
608 609
609 } // namespace blink 610 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698