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

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: addressed comments Created 3 years, 9 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 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 documentLoader->fetcher()->countPreloads()) 1488 documentLoader->fetcher()->countPreloads())
1489 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds, 1489 m_unusedPreloadsTimer.startOneShot(unusedPreloadTimeoutInSeconds,
1490 BLINK_FROM_HERE); 1490 BLINK_FROM_HERE);
1491 } else { 1491 } else {
1492 dispatchEvent(loadEvent, document()); 1492 dispatchEvent(loadEvent, document());
1493 } 1493 }
1494 1494
1495 if (frame()) { 1495 if (frame()) {
1496 Performance* performance = DOMWindowPerformance::performance(*this); 1496 Performance* performance = DOMWindowPerformance::performance(*this);
1497 DCHECK(performance); 1497 DCHECK(performance);
1498 performance->addNavigationTiming(frame()); 1498 performance->notifyNavigationTimingToObservers();
1499 } 1499 }
1500 1500
1501 // For load events, send a separate load event to the enclosing frame only. 1501 // For load events, send a separate load event to the enclosing frame only.
1502 // This is a DOM extension and is independent of bubbling/capturing rules of 1502 // This is a DOM extension and is independent of bubbling/capturing rules of
1503 // the DOM. 1503 // the DOM.
1504 FrameOwner* owner = frame() ? frame()->owner() : nullptr; 1504 FrameOwner* owner = frame() ? frame()->owner() : nullptr;
1505 if (owner) 1505 if (owner)
1506 owner->dispatchLoad(); 1506 owner->dispatchLoad();
1507 1507
1508 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad", 1508 TRACE_EVENT_INSTANT1("devtools.timeline", "MarkLoad",
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 DOMWindow::trace(visitor); 1656 DOMWindow::trace(visitor);
1657 Supplementable<LocalDOMWindow>::trace(visitor); 1657 Supplementable<LocalDOMWindow>::trace(visitor);
1658 } 1658 }
1659 1659
1660 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { 1660 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) {
1661 visitor->traceWrappers(m_customElements); 1661 visitor->traceWrappers(m_customElements);
1662 DOMWindow::traceWrappers(visitor); 1662 DOMWindow::traceWrappers(visitor);
1663 } 1663 }
1664 1664
1665 } // namespace blink 1665 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698