| 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 | 944 |
| 945 OriginTrialContext::AddTokensFromHeader( | 945 OriginTrialContext::AddTokensFromHeader( |
| 946 document, response_.HttpHeaderField(HTTPNames::Origin_Trial)); | 946 document, response_.HttpHeaderField(HTTPNames::Origin_Trial)); |
| 947 String referrer_policy_header = | 947 String referrer_policy_header = |
| 948 response_.HttpHeaderField(HTTPNames::Referrer_Policy); | 948 response_.HttpHeaderField(HTTPNames::Referrer_Policy); |
| 949 if (!referrer_policy_header.IsNull()) { | 949 if (!referrer_policy_header.IsNull()) { |
| 950 UseCounter::Count(*document, WebFeature::kReferrerPolicyHeader); | 950 UseCounter::Count(*document, WebFeature::kReferrerPolicyHeader); |
| 951 document->ParseAndSetReferrerPolicy(referrer_policy_header); | 951 document->ParseAndSetReferrerPolicy(referrer_policy_header); |
| 952 } | 952 } |
| 953 | 953 |
| 954 if (RuntimeEnabledFeatures::ServerTimingEnabled() && | |
| 955 frame_->GetDocument()->domWindow()) { | |
| 956 DOMWindowPerformance::performance(*(frame_->GetDocument()->domWindow())) | |
| 957 ->AddServerTiming(response_, | |
| 958 PerformanceBase::ShouldAddToBuffer::Always); | |
| 959 } | |
| 960 | |
| 961 GetLocalFrameClient().DidCreateNewDocument(); | 954 GetLocalFrameClient().DidCreateNewDocument(); |
| 962 } | 955 } |
| 963 | 956 |
| 964 void DocumentLoader::DidCommitNavigation() { | 957 void DocumentLoader::DidCommitNavigation() { |
| 965 if (GetFrameLoader().StateMachine()->CreatingInitialEmptyDocument()) | 958 if (GetFrameLoader().StateMachine()->CreatingInitialEmptyDocument()) |
| 966 return; | 959 return; |
| 967 | 960 |
| 968 if (!frame_->Loader().StateMachine()->CommittedMultipleRealLoads() && | 961 if (!frame_->Loader().StateMachine()->CommittedMultipleRealLoads() && |
| 969 load_type_ == kFrameLoadTypeStandard) { | 962 load_type_ == kFrameLoadTypeStandard) { |
| 970 frame_->Loader().StateMachine()->AdvanceTo( | 963 frame_->Loader().StateMachine()->AdvanceTo( |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 InstallNewDocumentReason::kJavascriptURL, | 1131 InstallNewDocumentReason::kJavascriptURL, |
| 1139 kForceSynchronousParsing, NullURL()); | 1132 kForceSynchronousParsing, NullURL()); |
| 1140 if (!source.IsNull()) | 1133 if (!source.IsNull()) |
| 1141 writer_->AppendReplacingData(source); | 1134 writer_->AppendReplacingData(source); |
| 1142 EndWriting(); | 1135 EndWriting(); |
| 1143 } | 1136 } |
| 1144 | 1137 |
| 1145 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 1138 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 1146 | 1139 |
| 1147 } // namespace blink | 1140 } // namespace blink |
| OLD | NEW |