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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: make ResourceTimingInfo ref-counted 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) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 documentLoader->fetcher()->countPreloads()) 1475 documentLoader->fetcher()->countPreloads())
1476 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, 1476 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds,
1477 BLINK_FROM_HERE); 1477 BLINK_FROM_HERE);
1478 } else { 1478 } else {
1479 dispatchEvent(loadEvent, document()); 1479 dispatchEvent(loadEvent, document());
1480 } 1480 }
1481 1481
1482 if (frame()) { 1482 if (frame()) {
1483 Performance* performance = DOMWindowPerformance::performance(*this); 1483 Performance* performance = DOMWindowPerformance::performance(*this);
1484 DCHECK(performance); 1484 DCHECK(performance);
1485 performance->addNavigationTiming(frame()); 1485 performance->notifyNavigationTimingToObservers();
1486 } 1486 }
1487 1487
1488 // For load events, send a separate load event to the enclosing frame only. 1488 // For load events, send a separate load event to the enclosing frame only.
1489 // This is a DOM extension and is independent of bubbling/capturing rules of 1489 // This is a DOM extension and is independent of bubbling/capturing rules of
1490 // the DOM. 1490 // the DOM.
1491 FrameOwner* owner = frame() ? frame()->owner() : nullptr; 1491 FrameOwner* owner = frame() ? frame()->owner() : nullptr;
1492 if (owner) 1492 if (owner)
1493 owner->dispatchLoad(); 1493 owner->dispatchLoad();
1494 1494
1495 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", 1495 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad",
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 DOMWindow::trace(visitor); 1633 DOMWindow::trace(visitor);
1634 Supplementable<LocalDOMWindow>::trace(visitor); 1634 Supplementable<LocalDOMWindow>::trace(visitor);
1635 } 1635 }
1636 1636
1637 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { 1637 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) {
1638 visitor->traceWrappers(m_customElements); 1638 visitor->traceWrappers(m_customElements);
1639 DOMWindow::traceWrappers(visitor); 1639 DOMWindow::traceWrappers(visitor);
1640 } 1640 }
1641 1641
1642 } // namespace blink 1642 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698