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

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

Issue 1586563014: Add <link rel=preload> onload support for scripts and styles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: USING_FAST_MALLOC Created 4 years, 11 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 { 139 {
140 } 140 }
141 141
142 bool wasScrolledByUser; 142 bool wasScrolledByUser;
143 bool didRestoreFromHistory; 143 bool didRestoreFromHistory;
144 }; 144 };
145 InitialScrollState& initialScrollState() { return m_initialScrollState; } 145 InitialScrollState& initialScrollState() { return m_initialScrollState; }
146 146
147 bool loadingMultipartContent() const; 147 bool loadingMultipartContent() const;
148 148
149 void startPreload(Resource::Type, FetchRequest&); 149 ResourcePtr<Resource> startPreload(Resource::Type, FetchRequest&);
150 150
151 DECLARE_VIRTUAL_TRACE(); 151 DECLARE_VIRTUAL_TRACE();
152 152
153 protected: 153 protected:
154 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); 154 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&);
155 155
156 Vector<KURL> m_redirectChain; 156 Vector<KURL> m_redirectChain;
157 157
158 private: 158 private:
159 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Document * ownerDocument, const DocumentInit&, const AtomicString& mimeType, const Atomic String& encoding, bool dispatch, ParserSynchronizationPolicy); 159 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Document * ownerDocument, const DocumentInit&, const AtomicString& mimeType, const Atomic String& encoding, bool dispatch, ParserSynchronizationPolicy);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Used to protect against reentrancy into dataReceived(). 242 // Used to protect against reentrancy into dataReceived().
243 bool m_inDataReceived; 243 bool m_inDataReceived;
244 RefPtr<SharedBuffer> m_dataBuffer; 244 RefPtr<SharedBuffer> m_dataBuffer;
245 }; 245 };
246 246
247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
248 248
249 } // namespace blink 249 } // namespace blink
250 250
251 #endif // DocumentLoader_h 251 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698