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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 InstallNewDocumentReason::kJavascriptURL, | 1084 InstallNewDocumentReason::kJavascriptURL, |
1092 kForceSynchronousParsing, KURL()); | 1085 kForceSynchronousParsing, KURL()); |
1093 if (!source.IsNull()) | 1086 if (!source.IsNull()) |
1094 writer_->AppendReplacingData(source); | 1087 writer_->AppendReplacingData(source); |
1095 EndWriting(); | 1088 EndWriting(); |
1096 } | 1089 } |
1097 | 1090 |
1098 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 1091 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
1099 | 1092 |
1100 } // namespace blink | 1093 } // namespace blink |
OLD | NEW |