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

Side by Side Diff: third_party/WebKit/Source/core/fetch/FetchContext.h

Issue 2487763003: [ImageLoader 2d] Set DecodeError by calling ResourceLoader::cancel()
Patch Set: Rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchContext.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int dataLength, 104 int dataLength,
105 int encodedDataLength); 105 int encodedDataLength);
106 virtual void dispatchDidDownloadData(unsigned long identifier, 106 virtual void dispatchDidDownloadData(unsigned long identifier,
107 int dataLength, 107 int dataLength,
108 int encodedDataLength); 108 int encodedDataLength);
109 virtual void dispatchDidFinishLoading(unsigned long identifier, 109 virtual void dispatchDidFinishLoading(unsigned long identifier,
110 double finishTime, 110 double finishTime,
111 int64_t encodedDataLength); 111 int64_t encodedDataLength);
112 virtual void dispatchDidFail(unsigned long identifier, 112 virtual void dispatchDidFail(unsigned long identifier,
113 const ResourceError&, 113 const ResourceError&,
114 bool isInternalRequest); 114 bool isInternalRequest,
115 bool isDecodeError);
115 116
116 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } 117 virtual bool shouldLoadNewResource(Resource::Type) const { return false; }
117 // Called when a resource load is first requested, which may not be when the 118 // Called when a resource load is first requested, which may not be when the
118 // load actually begins. 119 // load actually begins.
119 virtual void willStartLoadingResource(unsigned long identifier, 120 virtual void willStartLoadingResource(unsigned long identifier,
120 ResourceRequest&, 121 ResourceRequest&,
121 Resource::Type); 122 Resource::Type);
122 virtual void didLoadResource(Resource*); 123 virtual void didLoadResource(Resource*);
123 124
124 virtual void addResourceTiming(const ResourceTimingInfo&); 125 virtual void addResourceTiming(const ResourceTimingInfo&);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 167
167 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 168 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
168 169
169 protected: 170 protected:
170 FetchContext() {} 171 FetchContext() {}
171 }; 172 };
172 173
173 } // namespace blink 174 } // namespace blink
174 175
175 #endif 176 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698