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

Side by Side Diff: Source/WebCore/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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 static void callContinueAfterContentPolicy(void*, PolicyAction); 232 static void callContinueAfterContentPolicy(void*, PolicyAction);
233 void continueAfterContentPolicy(PolicyAction); 233 void continueAfterContentPolicy(PolicyAction);
234 234
235 void stopLoadingForPolicyChange(); 235 void stopLoadingForPolicyChange();
236 ResourceError interruptedForPolicyChangeError() const;
237 236
238 typedef Timer<DocumentLoader> DocumentLoaderTimer; 237 typedef Timer<DocumentLoader> DocumentLoaderTimer;
239 238
240 void handleSubstituteDataLoadSoon(); 239 void handleSubstituteDataLoadSoon();
241 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); 240 void handleSubstituteDataLoadNow(DocumentLoaderTimer*);
242 void startDataLoadTimer(); 241 void startDataLoadTimer();
243 242
244 void deliverSubstituteResourcesAfterDelay(); 243 void deliverSubstituteResourcesAfterDelay();
245 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*); 244 void substituteResourceDeliveryTimerFired(Timer<DocumentLoader>*);
246 245
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 326
328 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector <String>& loadsSet) 327 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector <String>& loadsSet)
329 { 328 {
330 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); 329 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification);
331 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); 330 m_resourcesLoadedFromMemoryCacheForClientNotification.clear();
332 } 331 }
333 332
334 } 333 }
335 334
336 #endif // DocumentLoader_h 335 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698