OLD | NEW |
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const ResourceResponse& response() const { return m_response; } | 114 const ResourceResponse& response() const { return m_response; } |
115 const ResourceError& mainDocumentError() const { return m_mainDocumentEr
ror; } | 115 const ResourceError& mainDocumentError() const { return m_mainDocumentEr
ror; } |
116 bool isClientRedirect() const { return m_isClientRedirect; } | 116 bool isClientRedirect() const { return m_isClientRedirect; } |
117 void setIsClientRedirect(bool isClientRedirect) { m_isClientRedirect = i
sClientRedirect; } | 117 void setIsClientRedirect(bool isClientRedirect) { m_isClientRedirect = i
sClientRedirect; } |
118 void handledOnloadEvents(); | 118 void handledOnloadEvents(); |
119 bool wasOnloadHandled() { return m_wasOnloadHandled; } | 119 bool wasOnloadHandled() { return m_wasOnloadHandled; } |
120 bool isLoadingInAPISense() const; | 120 bool isLoadingInAPISense() const; |
121 void setTitle(const StringWithDirection&); | 121 void setTitle(const StringWithDirection&); |
122 const String& overrideEncoding() const { return m_overrideEncoding; } | 122 const String& overrideEncoding() const { return m_overrideEncoding; } |
123 | 123 |
124 void setArchive(PassRefPtr<MHTMLArchive>); | |
125 void addAllArchiveResources(MHTMLArchive*); | |
126 PassRefPtr<MHTMLArchive> popArchiveForSubframe(const String& frameName,
const KURL&); | |
127 | |
128 bool scheduleArchiveLoad(ResourceLoader*, const ResourceRequest&); | 124 bool scheduleArchiveLoad(ResourceLoader*, const ResourceRequest&); |
129 | 125 |
130 // Return the ArchiveResource for the URL only when loading an Archive | |
131 ArchiveResource* archiveResourceForURL(const KURL&) const; | |
132 | |
133 #ifndef NDEBUG | 126 #ifndef NDEBUG |
134 bool isSubstituteLoadPending(ResourceLoader*) const; | 127 bool isSubstituteLoadPending(ResourceLoader*) const; |
135 #endif | 128 #endif |
136 void cancelPendingSubstituteLoad(ResourceLoader*); | 129 void cancelPendingSubstituteLoad(ResourceLoader*); |
137 | 130 |
138 bool shouldContinueForNavigationPolicy(const ResourceRequest&); | 131 bool shouldContinueForNavigationPolicy(const ResourceRequest&); |
139 const NavigationAction& triggeringAction() const { return m_triggeringAc
tion; } | 132 const NavigationAction& triggeringAction() const { return m_triggeringAc
tion; } |
140 void setTriggeringAction(const NavigationAction& action) { m_triggeringA
ction = action; } | 133 void setTriggeringAction(const NavigationAction& action) { m_triggeringA
ction = action; } |
141 | 134 |
142 void setOverrideEncoding(const String& encoding) { m_overrideEncoding =
encoding; } | 135 void setOverrideEncoding(const String& encoding) { m_overrideEncoding =
encoding; } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 void setMainDocumentError(const ResourceError&); | 196 void setMainDocumentError(const ResourceError&); |
204 void commitLoad(const char*, int); | 197 void commitLoad(const char*, int); |
205 void clearMainResourceLoader(); | 198 void clearMainResourceLoader(); |
206 | 199 |
207 void setupForReplace(); | 200 void setupForReplace(); |
208 void maybeFinishLoadingMultipartContent(); | 201 void maybeFinishLoadingMultipartContent(); |
209 | 202 |
210 bool maybeCreateArchive(); | 203 bool maybeCreateArchive(); |
211 void clearArchiveResources(); | 204 void clearArchiveResources(); |
212 | 205 |
| 206 void prepareSubframeArchiveLoadIfNeeded(); |
| 207 void addAllArchiveResources(MHTMLArchive*); |
| 208 ArchiveResource* archiveResourceForURL(const KURL&) const; |
| 209 |
213 void willSendRequest(ResourceRequest&, const ResourceResponse&); | 210 void willSendRequest(ResourceRequest&, const ResourceResponse&); |
214 void finishedLoading(double finishTime); | 211 void finishedLoading(double finishTime); |
215 void mainReceivedError(const ResourceError&); | 212 void mainReceivedError(const ResourceError&); |
216 virtual void redirectReceived(CachedResource*, ResourceRequest&, const R
esourceResponse&) OVERRIDE; | 213 virtual void redirectReceived(CachedResource*, ResourceRequest&, const R
esourceResponse&) OVERRIDE; |
217 virtual void responseReceived(CachedResource*, const ResourceResponse&)
OVERRIDE; | 214 virtual void responseReceived(CachedResource*, const ResourceResponse&)
OVERRIDE; |
218 virtual void dataReceived(CachedResource*, const char* data, int length)
OVERRIDE; | 215 virtual void dataReceived(CachedResource*, const char* data, int length)
OVERRIDE; |
219 virtual void notifyFinished(CachedResource*) OVERRIDE; | 216 virtual void notifyFinished(CachedResource*) OVERRIDE; |
220 | 217 |
221 bool maybeLoadEmpty(); | 218 bool maybeLoadEmpty(); |
222 | 219 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 311 |
315 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector
<String>& loadsSet) | 312 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector
<String>& loadsSet) |
316 { | 313 { |
317 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); | 314 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); |
318 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); | 315 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); |
319 } | 316 } |
320 | 317 |
321 } | 318 } |
322 | 319 |
323 #endif // DocumentLoader_h | 320 #endif // DocumentLoader_h |
OLD | NEW |