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

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

Issue 2962113002: Updates to Server-Timing in accordance with with spec changes (Closed)
Patch Set: fix web-platform-tests Created 3 years, 5 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 } 1486 }
1487 1487
1488 void LocalDOMWindow::DispatchLoadEvent() { 1488 void LocalDOMWindow::DispatchLoadEvent() {
1489 Event* load_event(Event::Create(EventTypeNames::load)); 1489 Event* load_event(Event::Create(EventTypeNames::load));
1490 if (GetFrame() && GetFrame()->Loader().GetDocumentLoader() && 1490 if (GetFrame() && GetFrame()->Loader().GetDocumentLoader() &&
1491 !GetFrame()->Loader().GetDocumentLoader()->GetTiming().LoadEventStart()) { 1491 !GetFrame()->Loader().GetDocumentLoader()->GetTiming().LoadEventStart()) {
1492 DocumentLoader* document_loader = GetFrame()->Loader().GetDocumentLoader(); 1492 DocumentLoader* document_loader = GetFrame()->Loader().GetDocumentLoader();
1493 DocumentLoadTiming& timing = document_loader->GetTiming(); 1493 DocumentLoadTiming& timing = document_loader->GetTiming();
1494 timing.MarkLoadEventStart(); 1494 timing.MarkLoadEventStart();
1495 DispatchEvent(load_event, document()); 1495 DispatchEvent(load_event, document());
1496 SetHasLoadEventFired();
1497 timing.MarkLoadEventEnd(); 1496 timing.MarkLoadEventEnd();
1498 DCHECK(document_loader->Fetcher()); 1497 DCHECK(document_loader->Fetcher());
1499 // If fetcher->countPreloads() is not empty here, it's full of link 1498 // If fetcher->countPreloads() is not empty here, it's full of link
1500 // preloads, as speculatove preloads were cleared at DCL. 1499 // preloads, as speculatove preloads were cleared at DCL.
1501 if (GetFrame() && 1500 if (GetFrame() &&
1502 document_loader == GetFrame()->Loader().GetDocumentLoader() && 1501 document_loader == GetFrame()->Loader().GetDocumentLoader() &&
1503 document_loader->Fetcher()->CountPreloads()) 1502 document_loader->Fetcher()->CountPreloads())
1504 unused_preloads_timer_.StartOneShot(kUnusedPreloadTimeoutInSeconds, 1503 unused_preloads_timer_.StartOneShot(kUnusedPreloadTimeoutInSeconds,
1505 BLINK_FROM_HERE); 1504 BLINK_FROM_HERE);
1506 } else { 1505 } else {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 Supplementable<LocalDOMWindow>::Trace(visitor); 1667 Supplementable<LocalDOMWindow>::Trace(visitor);
1669 } 1668 }
1670 1669
1671 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { 1670 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) {
1672 visitor->TraceWrappers(custom_elements_); 1671 visitor->TraceWrappers(custom_elements_);
1673 visitor->TraceWrappers(modulator_); 1672 visitor->TraceWrappers(modulator_);
1674 DOMWindow::TraceWrappers(visitor); 1673 DOMWindow::TraceWrappers(visitor);
1675 } 1674 }
1676 1675
1677 } // namespace blink 1676 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.h ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698