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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 virtual void dataReceived(CachedResource*, const char* data, int length)
OVERRIDE; | 218 virtual void dataReceived(CachedResource*, const char* data, int length)
OVERRIDE; |
219 virtual void notifyFinished(CachedResource*) OVERRIDE; | 219 virtual void notifyFinished(CachedResource*) OVERRIDE; |
220 | 220 |
221 bool maybeLoadEmpty(); | 221 bool maybeLoadEmpty(); |
222 | 222 |
223 bool isMultipartReplacingLoad() const; | 223 bool isMultipartReplacingLoad() const; |
224 bool isPostOrRedirectAfterPost(const ResourceRequest&, const ResourceRes
ponse&); | 224 bool isPostOrRedirectAfterPost(const ResourceRequest&, const ResourceRes
ponse&); |
225 | 225 |
226 bool shouldContinueForResponse() const; | 226 bool shouldContinueForResponse() const; |
227 void stopLoadingForPolicyChange(); | 227 void stopLoadingForPolicyChange(); |
| 228 ResourceError interruptedForPolicyChangeError() const; |
228 | 229 |
229 typedef Timer<DocumentLoader> DocumentLoaderTimer; | 230 typedef Timer<DocumentLoader> DocumentLoaderTimer; |
230 | 231 |
231 void handleSubstituteDataLoadSoon(); | 232 void handleSubstituteDataLoadSoon(); |
232 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); | 233 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); |
233 void startDataLoadTimer(); | 234 void startDataLoadTimer(); |
234 | 235 |
235 void deliverSubstituteResourcesAfterDelay(); | 236 void deliverSubstituteResourcesAfterDelay(); |
236 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*); | 237 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*); |
237 | 238 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 314 |
314 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector
<String>& loadsSet) | 315 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector
<String>& loadsSet) |
315 { | 316 { |
316 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); | 317 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); |
317 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); | 318 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); |
318 } | 319 } |
319 | 320 |
320 } | 321 } |
321 | 322 |
322 #endif // DocumentLoader_h | 323 #endif // DocumentLoader_h |
OLD | NEW |