| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "core/loader/SubresourceFilter.h" | 54 #include "core/loader/SubresourceFilter.h" |
| 55 #include "core/loader/appcache/ApplicationCacheHost.h" | 55 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 56 #include "core/loader/resource/CSSStyleSheetResource.h" | 56 #include "core/loader/resource/CSSStyleSheetResource.h" |
| 57 #include "core/loader/resource/FontResource.h" | 57 #include "core/loader/resource/FontResource.h" |
| 58 #include "core/loader/resource/ImageResource.h" | 58 #include "core/loader/resource/ImageResource.h" |
| 59 #include "core/loader/resource/ScriptResource.h" | 59 #include "core/loader/resource/ScriptResource.h" |
| 60 #include "core/origin_trials/OriginTrialContext.h" | 60 #include "core/origin_trials/OriginTrialContext.h" |
| 61 #include "core/page/FrameTree.h" | 61 #include "core/page/FrameTree.h" |
| 62 #include "core/page/Page.h" | 62 #include "core/page/Page.h" |
| 63 #include "core/probe/CoreProbes.h" | 63 #include "core/probe/CoreProbes.h" |
| 64 #include "core/timing/DOMWindowPerformance.h" |
| 65 #include "core/timing/Performance.h" |
| 64 #include "platform/HTTPNames.h" | 66 #include "platform/HTTPNames.h" |
| 65 #include "platform/UserGestureIndicator.h" | 67 #include "platform/UserGestureIndicator.h" |
| 66 #include "platform/feature_policy/FeaturePolicy.h" | 68 #include "platform/feature_policy/FeaturePolicy.h" |
| 67 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" | 69 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 68 #include "platform/loader/fetch/FetchRequest.h" | 70 #include "platform/loader/fetch/FetchRequest.h" |
| 69 #include "platform/loader/fetch/FetchUtils.h" | 71 #include "platform/loader/fetch/FetchUtils.h" |
| 70 #include "platform/loader/fetch/MemoryCache.h" | 72 #include "platform/loader/fetch/MemoryCache.h" |
| 71 #include "platform/loader/fetch/ResourceFetcher.h" | 73 #include "platform/loader/fetch/ResourceFetcher.h" |
| 72 #include "platform/loader/fetch/ResourceTimingInfo.h" | 74 #include "platform/loader/fetch/ResourceTimingInfo.h" |
| 73 #include "platform/mhtml/ArchiveResource.h" | 75 #include "platform/mhtml/ArchiveResource.h" |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 | 951 |
| 950 OriginTrialContext::addTokensFromHeader( | 952 OriginTrialContext::addTokensFromHeader( |
| 951 document, m_response.httpHeaderField(HTTPNames::Origin_Trial)); | 953 document, m_response.httpHeaderField(HTTPNames::Origin_Trial)); |
| 952 String referrerPolicyHeader = | 954 String referrerPolicyHeader = |
| 953 m_response.httpHeaderField(HTTPNames::Referrer_Policy); | 955 m_response.httpHeaderField(HTTPNames::Referrer_Policy); |
| 954 if (!referrerPolicyHeader.isNull()) { | 956 if (!referrerPolicyHeader.isNull()) { |
| 955 UseCounter::count(*document, UseCounter::ReferrerPolicyHeader); | 957 UseCounter::count(*document, UseCounter::ReferrerPolicyHeader); |
| 956 document->parseAndSetReferrerPolicy(referrerPolicyHeader); | 958 document->parseAndSetReferrerPolicy(referrerPolicyHeader); |
| 957 } | 959 } |
| 958 | 960 |
| 961 if (RuntimeEnabledFeatures::serverTimingEnabled() && |
| 962 m_frame->document()->domWindow()) { |
| 963 DOMWindowPerformance::performance(*(m_frame->document()->domWindow())) |
| 964 ->addServerTiming(m_response, |
| 965 PerformanceBase::ShouldAddToBuffer::Always); |
| 966 } |
| 967 |
| 959 localFrameClient().didCreateNewDocument(); | 968 localFrameClient().didCreateNewDocument(); |
| 960 } | 969 } |
| 961 | 970 |
| 962 void DocumentLoader::didCommitNavigation() { | 971 void DocumentLoader::didCommitNavigation() { |
| 963 if (frameLoader().stateMachine()->creatingInitialEmptyDocument()) | 972 if (frameLoader().stateMachine()->creatingInitialEmptyDocument()) |
| 964 return; | 973 return; |
| 965 | 974 |
| 966 if (!m_frame->loader().stateMachine()->committedMultipleRealLoads() && | 975 if (!m_frame->loader().stateMachine()->committedMultipleRealLoads() && |
| 967 m_loadType == FrameLoadTypeStandard) { | 976 m_loadType == FrameLoadTypeStandard) { |
| 968 m_frame->loader().stateMachine()->advanceTo( | 977 m_frame->loader().stateMachine()->advanceTo( |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 InstallNewDocumentReason::kJavascriptURL, | 1111 InstallNewDocumentReason::kJavascriptURL, |
| 1103 ForceSynchronousParsing, KURL()); | 1112 ForceSynchronousParsing, KURL()); |
| 1104 if (!source.isNull()) | 1113 if (!source.isNull()) |
| 1105 m_writer->appendReplacingData(source); | 1114 m_writer->appendReplacingData(source); |
| 1106 endWriting(); | 1115 endWriting(); |
| 1107 } | 1116 } |
| 1108 | 1117 |
| 1109 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 1118 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 1110 | 1119 |
| 1111 } // namespace blink | 1120 } // namespace blink |
| OLD | NEW |