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

Side by Side Diff: Source/core/loader/ResourceLoader.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/loader/FrameLoaderClient.h ('k') | Source/core/loader/ResourceLoader.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) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual ~ResourceLoader(); 55 virtual ~ResourceLoader();
56 56
57 void cancel(); 57 void cancel();
58 void cancel(const ResourceError&); 58 void cancel(const ResourceError&);
59 void cancelIfNotFinishing(); 59 void cancelIfNotFinishing();
60 60
61 FrameLoader* frameLoader() const; 61 FrameLoader* frameLoader() const;
62 DocumentLoader* documentLoader() const { return m_documentLoader.get(); } 62 DocumentLoader* documentLoader() const { return m_documentLoader.get(); }
63 CachedResource* cachedResource() { return m_resource; } 63 CachedResource* cachedResource() { return m_resource; }
64 const ResourceRequest& originalRequest() const { return m_originalRequest; } 64 const ResourceRequest& originalRequest() const { return m_originalRequest; }
65
66 ResourceError cancelledError();
67 ResourceError cannotShowURLError();
65 68
66 void setDefersLoading(bool); 69 void setDefersLoading(bool);
67 bool defersLoading() const { return m_defersLoading; } 70 bool defersLoading() const { return m_defersLoading; }
68 71
69 unsigned long identifier() const { return m_identifier; } 72 unsigned long identifier() const { return m_identifier; }
70 73
71 void releaseResources(); 74 void releaseResources();
72 75
73 void didChangePriority(ResourceLoadPriority); 76 void didChangePriority(ResourceLoadPriority);
74 77
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 }; 141 };
139 142
140 CachedResource* m_resource; 143 CachedResource* m_resource;
141 ResourceLoaderState m_state; 144 ResourceLoaderState m_state;
142 OwnPtr<RequestCountTracker> m_requestCountTracker; 145 OwnPtr<RequestCountTracker> m_requestCountTracker;
143 }; 146 };
144 147
145 } 148 }
146 149
147 #endif 150 #endif
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/core/loader/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698