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

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: Rebasing again, Trybot issues. Created 4 years, 3 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void dispatchLinkHeaderPreloads(ViewportDescriptionWrapper*, LinkLoader::Med iaPreloadPolicy); 152 void dispatchLinkHeaderPreloads(ViewportDescriptionWrapper*, LinkLoader::Med iaPreloadPolicy);
153 153
154 Resource* startPreload(Resource::Type, FetchRequest&); 154 Resource* startPreload(Resource::Type, FetchRequest&);
155 155
156 DECLARE_VIRTUAL_TRACE(); 156 DECLARE_VIRTUAL_TRACE();
157 157
158 protected: 158 protected:
159 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); 159 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&);
160 160
161 void didRedirect(const KURL& oldURL, const KURL& newURL);
162
161 Vector<KURL> m_redirectChain; 163 Vector<KURL> m_redirectChain;
162 164
163 private: 165 private:
164 static DocumentWriter* createWriterFor(const DocumentInit&, const AtomicStri ng& mimeType, const AtomicString& encoding, bool dispatchWindowObjectAvailable, ParserSynchronizationPolicy, const KURL& overridingURL = KURL()); 166 static DocumentWriter* createWriterFor(const DocumentInit&, const AtomicStri ng& mimeType, const AtomicString& encoding, bool dispatchWindowObjectAvailable, ParserSynchronizationPolicy, const KURL& overridingURL = KURL());
165 167
166 void ensureWriter(const AtomicString& mimeType, const KURL& overridingURL = KURL()); 168 void ensureWriter(const AtomicString& mimeType, const KURL& overridingURL = KURL());
167 void endWriting(DocumentWriter*); 169 void endWriting(DocumentWriter*);
168 170
169 FrameLoader* frameLoader() const; 171 FrameLoader* frameLoader() const;
170 172
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Used to protect against reentrancy into dataReceived(). 244 // Used to protect against reentrancy into dataReceived().
243 bool m_inDataReceived; 245 bool m_inDataReceived;
244 RefPtr<SharedBuffer> m_dataBuffer; 246 RefPtr<SharedBuffer> m_dataBuffer;
245 }; 247 };
246 248
247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 249 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
248 250
249 } // namespace blink 251 } // namespace blink
250 252
251 #endif // DocumentLoader_h 253 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698