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

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

Issue 14495011: Revert "Create errors (especially cancellation errors) internally to WebCore, rather" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/html/PluginDocument.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
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
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
OLDNEW
« no previous file with comments | « Source/core/html/PluginDocument.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698