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

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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 bool maybeLoadEmpty(); 224 bool maybeLoadEmpty();
225 225
226 bool isMultipartReplacingLoad() const; 226 bool isMultipartReplacingLoad() const;
227 bool isPostOrRedirectAfterPost(const ResourceRequest&, const ResourceRes ponse&); 227 bool isPostOrRedirectAfterPost(const ResourceRequest&, const ResourceRes ponse&);
228 228
229 static void callContinueAfterNavigationPolicy(void*, const ResourceReque st&, PassRefPtr<FormState>, bool shouldContinue); 229 static void callContinueAfterNavigationPolicy(void*, const ResourceReque st&, PassRefPtr<FormState>, bool shouldContinue);
230 void continueAfterNavigationPolicy(const ResourceRequest&, bool shouldCo ntinue); 230 void continueAfterNavigationPolicy(const ResourceRequest&, bool shouldCo ntinue);
231 231
232 bool shouldContinueForResponse() const; 232 bool shouldContinueForResponse() const;
233 void stopLoadingForPolicyChange(); 233 void stopLoadingForPolicyChange();
234 ResourceError interruptedForPolicyChangeError() const;
235 234
236 typedef Timer<DocumentLoader> DocumentLoaderTimer; 235 typedef Timer<DocumentLoader> DocumentLoaderTimer;
237 236
238 void handleSubstituteDataLoadSoon(); 237 void handleSubstituteDataLoadSoon();
239 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); 238 void handleSubstituteDataLoadNow(DocumentLoaderTimer*);
240 void startDataLoadTimer(); 239 void startDataLoadTimer();
241 240
242 void deliverSubstituteResourcesAfterDelay(); 241 void deliverSubstituteResourcesAfterDelay();
243 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*); 242 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*);
244 243
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 323
325 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector <String>& loadsSet) 324 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector <String>& loadsSet)
326 { 325 {
327 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); 326 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification);
328 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); 327 m_resourcesLoadedFromMemoryCacheForClientNotification.clear();
329 } 328 }
330 329
331 } 330 }
332 331
333 #endif // DocumentLoader_h 332 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698