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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change null enum name Created 4 years, 8 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 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return resource; 203 return resource;
204 } 204 }
205 205
206 void DocumentLoader::didChangePerformanceTiming() 206 void DocumentLoader::didChangePerformanceTiming()
207 { 207 {
208 if (frame() && frame()->isMainFrame() && m_state >= Committed) { 208 if (frame() && frame()->isMainFrame() && m_state >= Committed) {
209 frameLoader()->client()->didChangePerformanceTiming(); 209 frameLoader()->client()->didChangePerformanceTiming();
210 } 210 }
211 } 211 }
212 212
213 void DocumentLoader::didObserveLoadingBehavior(WebLoadingData data)
214 {
215 if (frame() && frame()->isMainFrame() && m_state >= Committed) {
216 frameLoader()->client()->didObserveLoadingBehavior(data);
217 }
218 }
219
213 void DocumentLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDoc umentNavigationSource sameDocumentNavigationSource) 220 void DocumentLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDoc umentNavigationSource sameDocumentNavigationSource)
214 { 221 {
215 KURL oldURL = m_request.url(); 222 KURL oldURL = m_request.url();
216 m_originalRequest.setURL(newURL); 223 m_originalRequest.setURL(newURL);
217 m_request.setURL(newURL); 224 m_request.setURL(newURL);
218 if (sameDocumentNavigationSource == SameDocumentNavigationHistoryApi) { 225 if (sameDocumentNavigationSource == SameDocumentNavigationHistoryApi) {
219 m_request.setHTTPMethod(HTTPNames::GET); 226 m_request.setHTTPMethod(HTTPNames::GET);
220 m_request.setHTTPBody(nullptr); 227 m_request.setHTTPBody(nullptr);
221 } 228 }
222 clearRedirectChain(); 229 clearRedirectChain();
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 { 694 {
688 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding() : emptyAtom, true, ForceSynchronousParsing); 695 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding() : emptyAtom, true, ForceSynchronousParsing);
689 if (!source.isNull()) 696 if (!source.isNull())
690 m_writer->appendReplacingData(source); 697 m_writer->appendReplacingData(source);
691 endWriting(m_writer.get()); 698 endWriting(m_writer.get());
692 } 699 }
693 700
694 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); 701 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader);
695 702
696 } // namespace blink 703 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698