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

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

Issue 14264012: Create errors (especially cancellation errors) internally to WebCore, rather (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 years, 8 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
229 228
230 typedef Timer<DocumentLoader> DocumentLoaderTimer; 229 typedef Timer<DocumentLoader> DocumentLoaderTimer;
231 230
232 void handleSubstituteDataLoadSoon(); 231 void handleSubstituteDataLoadSoon();
233 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); 232 void handleSubstituteDataLoadNow(DocumentLoaderTimer*);
234 void startDataLoadTimer(); 233 void startDataLoadTimer();
235 234
236 void deliverSubstituteResourcesAfterDelay(); 235 void deliverSubstituteResourcesAfterDelay();
237 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*); 236 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*);
238 237
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 313
315 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector <String>& loadsSet) 314 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector <String>& loadsSet)
316 { 315 {
317 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); 316 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification);
318 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); 317 m_resourcesLoadedFromMemoryCacheForClientNotification.clear();
319 } 318 }
320 319
321 } 320 }
322 321
323 #endif // DocumentLoader_h 322 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698