OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/frame/UseCounter.h" | 47 #include "core/frame/UseCounter.h" |
48 #include "core/html/HTMLFrameOwnerElement.h" | 48 #include "core/html/HTMLFrameOwnerElement.h" |
49 #include "core/html/imports/HTMLImportsController.h" | 49 #include "core/html/imports/HTMLImportsController.h" |
50 #include "core/inspector/ConsoleMessage.h" | 50 #include "core/inspector/ConsoleMessage.h" |
51 #include "core/inspector/IdentifiersFactory.h" | 51 #include "core/inspector/IdentifiersFactory.h" |
52 #include "core/inspector/InspectorTraceEvents.h" | 52 #include "core/inspector/InspectorTraceEvents.h" |
53 #include "core/loader/DocumentLoader.h" | 53 #include "core/loader/DocumentLoader.h" |
54 #include "core/loader/FrameLoader.h" | 54 #include "core/loader/FrameLoader.h" |
55 #include "core/loader/MixedContentChecker.h" | 55 #include "core/loader/MixedContentChecker.h" |
56 #include "core/loader/NetworkHintsInterface.h" | 56 #include "core/loader/NetworkHintsInterface.h" |
| 57 #include "core/loader/NetworkQuietDetector.h" |
57 #include "core/loader/PingLoader.h" | 58 #include "core/loader/PingLoader.h" |
58 #include "core/loader/ProgressTracker.h" | 59 #include "core/loader/ProgressTracker.h" |
59 #include "core/loader/SubresourceFilter.h" | 60 #include "core/loader/SubresourceFilter.h" |
60 #include "core/loader/appcache/ApplicationCacheHost.h" | 61 #include "core/loader/appcache/ApplicationCacheHost.h" |
61 #include "core/loader/private/FrameClientHintsPreferencesContext.h" | 62 #include "core/loader/private/FrameClientHintsPreferencesContext.h" |
62 #include "core/page/Page.h" | 63 #include "core/page/Page.h" |
63 #include "core/paint/FirstMeaningfulPaintDetector.h" | 64 #include "core/paint/FirstMeaningfulPaintDetector.h" |
64 #include "core/probe/CoreProbes.h" | 65 #include "core/probe/CoreProbes.h" |
65 #include "core/svg/graphics/SVGImageChromeClient.h" | 66 #include "core/svg/graphics/SVGImageChromeClient.h" |
66 #include "core/timing/DOMWindowPerformance.h" | 67 #include "core/timing/DOMWindowPerformance.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 argv.push_back(Resource::ResourceTypeToString(type, fetch_initiator_name)); | 586 argv.push_back(Resource::ResourceTypeToString(type, fetch_initiator_name)); |
586 argv.push_back(request.Url()); | 587 argv.push_back(request.Url()); |
587 activity_logger->LogEvent("blinkRequestResource", argv.size(), argv.data()); | 588 activity_logger->LogEvent("blinkRequestResource", argv.size(), argv.data()); |
588 } | 589 } |
589 } | 590 } |
590 | 591 |
591 void FrameFetchContext::DidLoadResource(Resource* resource) { | 592 void FrameFetchContext::DidLoadResource(Resource* resource) { |
592 if (!document_) | 593 if (!document_) |
593 return; | 594 return; |
594 FirstMeaningfulPaintDetector::From(*document_).CheckNetworkStable(); | 595 FirstMeaningfulPaintDetector::From(*document_).CheckNetworkStable(); |
| 596 NetworkQuietDetector::From(*document_).CheckNetworkStable(); |
595 if (resource->IsLoadEventBlockingResourceType()) | 597 if (resource->IsLoadEventBlockingResourceType()) |
596 document_->CheckCompleted(); | 598 document_->CheckCompleted(); |
597 } | 599 } |
598 | 600 |
599 void FrameFetchContext::AddResourceTiming(const ResourceTimingInfo& info) { | 601 void FrameFetchContext::AddResourceTiming(const ResourceTimingInfo& info) { |
600 Document* initiator_document = document_ && info.IsMainResource() | 602 Document* initiator_document = document_ && info.IsMainResource() |
601 ? document_->ParentDocument() | 603 ? document_->ParentDocument() |
602 : document_.Get(); | 604 : document_.Get(); |
603 if (!initiator_document || !initiator_document->domWindow()) | 605 if (!initiator_document || !initiator_document->domWindow()) |
604 return; | 606 return; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 } | 1087 } |
1086 | 1088 |
1087 DEFINE_TRACE(FrameFetchContext) { | 1089 DEFINE_TRACE(FrameFetchContext) { |
1088 visitor->Trace(document_loader_); | 1090 visitor->Trace(document_loader_); |
1089 visitor->Trace(document_); | 1091 visitor->Trace(document_); |
1090 visitor->Trace(frozen_state_); | 1092 visitor->Trace(frozen_state_); |
1091 BaseFetchContext::Trace(visitor); | 1093 BaseFetchContext::Trace(visitor); |
1092 } | 1094 } |
1093 | 1095 |
1094 } // namespace blink | 1096 } // namespace blink |
OLD | NEW |