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

Side by Side Diff: third_party/WebKit/Source/web/WebDataSourceImpl.cpp

Issue 2196333002: PlzNavigate: Clear provisional history item on redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timing_api
Patch Set: Rebasing again, Trybot issues. Created 4 years, 4 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 WebURL WebDataSourceImpl::unreachableURL() const 68 WebURL WebDataSourceImpl::unreachableURL() const
69 { 69 {
70 return DocumentLoader::unreachableURL(); 70 return DocumentLoader::unreachableURL();
71 } 71 }
72 72
73 void WebDataSourceImpl::appendRedirect(const WebURL& url) 73 void WebDataSourceImpl::appendRedirect(const WebURL& url)
74 { 74 {
75 DocumentLoader::appendRedirect(url); 75 DocumentLoader::appendRedirect(url);
76 } 76 }
77 77
78 void WebDataSourceImpl::updateNavigationTimings(double redirectStartTime, double redirectEndTime, double fetchStartTime, const WebVector<WebURL>& redirectChain) 78 void WebDataSourceImpl::updateNavigation(double redirectStartTime, double redire ctEndTime, double fetchStartTime, const WebVector<WebURL>& redirectChain)
79 { 79 {
80 for (size_t i = 0; i + 1 < redirectChain.size(); ++i) 80 for (size_t i = 0; i + 1 < redirectChain.size(); ++i)
81 timing().addRedirect(redirectChain[i], redirectChain[i + 1]); 81 didRedirect(redirectChain[i], redirectChain[i + 1]);
82 timing().setRedirectStart(redirectStartTime); 82 timing().setRedirectStart(redirectStartTime);
83 timing().setRedirectEnd(redirectEndTime); 83 timing().setRedirectEnd(redirectEndTime);
84 timing().setFetchStart(fetchStartTime); 84 timing().setFetchStart(fetchStartTime);
85 } 85 }
86 86
87 void WebDataSourceImpl::redirectChain(WebVector<WebURL>& result) const 87 void WebDataSourceImpl::redirectChain(WebVector<WebURL>& result) const
88 { 88 {
89 result.assign(m_redirectChain); 89 result.assign(m_redirectChain);
90 } 90 }
91 91
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 { 163 {
164 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter)); 164 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter));
165 } 165 }
166 166
167 DEFINE_TRACE(WebDataSourceImpl) 167 DEFINE_TRACE(WebDataSourceImpl)
168 { 168 {
169 DocumentLoader::trace(visitor); 169 DocumentLoader::trace(visitor);
170 } 170 }
171 171
172 } // namespace blink 172 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDataSourceImpl.h ('k') | third_party/WebKit/public/web/WebDataSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698