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

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

Issue 2196333002: PlzNavigate: Clear provisional history item on redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timing_api
Patch Set: Addressed comments 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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 }; 145 };
146 InitialScrollState& initialScrollState() { return m_initialScrollState; } 146 InitialScrollState& initialScrollState() { return m_initialScrollState; }
147 147
148 void setWasBlockedAfterXFrameOptionsOrCSP() { m_wasBlockedAfterXFrameOptions OrCSP = true; } 148 void setWasBlockedAfterXFrameOptionsOrCSP() { m_wasBlockedAfterXFrameOptions OrCSP = true; }
149 bool wasBlockedAfterXFrameOptionsOrCSP() { return m_wasBlockedAfterXFrameOpt ionsOrCSP; } 149 bool wasBlockedAfterXFrameOptionsOrCSP() { return m_wasBlockedAfterXFrameOpt ionsOrCSP; }
150 150
151 void dispatchLinkHeaderPreloads(ViewportDescriptionWrapper*, LinkLoader::Med iaPreloadPolicy); 151 void dispatchLinkHeaderPreloads(ViewportDescriptionWrapper*, LinkLoader::Med iaPreloadPolicy);
152 152
153 Resource* startPreload(Resource::Type, FetchRequest&); 153 Resource* startPreload(Resource::Type, FetchRequest&);
154 154
155 void addExternalRedirect(const KURL& oldURL, const KURL& newURL);
Charlie Reis 2016/08/11 21:05:01 Maybe didRedirect? "External redirect" isn't a te
arthursonzogni 2016/08/16 09:26:21 Done.
156
155 DECLARE_VIRTUAL_TRACE(); 157 DECLARE_VIRTUAL_TRACE();
156 158
157 protected: 159 protected:
158 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); 160 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&);
159 161
160 Vector<KURL> m_redirectChain; 162 Vector<KURL> m_redirectChain;
161 163
162 private: 164 private:
163 static DocumentWriter* createWriterFor(const DocumentInit&, const AtomicStri ng& mimeType, const AtomicString& encoding, bool dispatchWindowObjectAvailable, ParserSynchronizationPolicy, const KURL& overridingURL = KURL()); 165 static DocumentWriter* createWriterFor(const DocumentInit&, const AtomicStri ng& mimeType, const AtomicString& encoding, bool dispatchWindowObjectAvailable, ParserSynchronizationPolicy, const KURL& overridingURL = KURL());
164 166
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Used to protect against reentrancy into dataReceived(). 243 // Used to protect against reentrancy into dataReceived().
242 bool m_inDataReceived; 244 bool m_inDataReceived;
243 RefPtr<SharedBuffer> m_dataBuffer; 245 RefPtr<SharedBuffer> m_dataBuffer;
244 }; 246 };
245 247
246 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 248 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
247 249
248 } // namespace blink 250 } // namespace blink
249 251
250 #endif // DocumentLoader_h 252 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698