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

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

Issue 1170503003: Remove resource type-specific fetching logic from ResourceFetcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null-check Document::loader() before calling startPreload() Created 5 years, 6 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 | Annotate | Revision Log
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 { 132 {
133 } 133 }
134 134
135 // TODO(skobes): Move FrameView::m_wasScrolledByUser into here. 135 // TODO(skobes): Move FrameView::m_wasScrolledByUser into here.
136 bool didRestoreFromHistory; 136 bool didRestoreFromHistory;
137 }; 137 };
138 InitialScrollState& initialScrollState() { return m_initialScrollState; } 138 InitialScrollState& initialScrollState() { return m_initialScrollState; }
139 139
140 bool loadingMultipartContent() const; 140 bool loadingMultipartContent() const;
141 141
142 void startPreload(Resource::Type, FetchRequest&);
143
142 protected: 144 protected:
143 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData &); 145 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData &);
144 146
145 Vector<KURL> m_redirectChain; 147 Vector<KURL> m_redirectChain;
146 148
147 private: 149 private:
148 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Docu ment* ownerDocument, const DocumentInit&, const AtomicString& mimeType, const At omicString& encoding, bool dispatch, ParserSynchronizationPolicy); 150 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Docu ment* ownerDocument, const DocumentInit&, const AtomicString& mimeType, const At omicString& encoding, bool dispatch, ParserSynchronizationPolicy);
149 151
150 void ensureWriter(const AtomicString& mimeType, const KURL& overridingUR L = KURL()); 152 void ensureWriter(const AtomicString& mimeType, const KURL& overridingUR L = KURL());
151 void endWriting(DocumentWriter*); 153 void endWriting(DocumentWriter*);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 friend class ApplicationCacheHost; // for substitute resource delivery 220 friend class ApplicationCacheHost; // for substitute resource delivery
219 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost; 221 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost;
220 222
221 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; 223 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
222 ClientHintsPreferences m_clientHintsPreferences; 224 ClientHintsPreferences m_clientHintsPreferences;
223 InitialScrollState m_initialScrollState; 225 InitialScrollState m_initialScrollState;
224 }; 226 };
225 } 227 }
226 228
227 #endif // DocumentLoader_h 229 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceContentLoader.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698