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: third_party/WebKit/Source/core/fetch/ResourceFetcher.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
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
5 rights reserved. 5 rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&); 120 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&);
121 enum DidFinishLoadingReason { 121 enum DidFinishLoadingReason {
122 DidFinishLoading, 122 DidFinishLoading,
123 DidFinishFirstPartInMultipart 123 DidFinishFirstPartInMultipart
124 }; 124 };
125 void didFinishLoading(Resource*, 125 void didFinishLoading(Resource*,
126 double finishTime, 126 double finishTime,
127 int64_t encodedDataLength, 127 int64_t encodedDataLength,
128 DidFinishLoadingReason); 128 DidFinishLoadingReason);
129 void didFailLoading(Resource*, const ResourceError&); 129 void didFailLoading(Resource*,
130 const ResourceError&,
131 Resource::Status errorStatus);
130 void didReceiveResponse(Resource*, 132 void didReceiveResponse(Resource*,
131 const ResourceResponse&, 133 const ResourceResponse&,
132 WebDataConsumerHandle*); 134 WebDataConsumerHandle*);
133 void didReceiveData(const Resource*, 135 void didReceiveData(const Resource*,
134 const char* data, 136 const char* data,
135 int dataLength, 137 int dataLength,
136 int encodedDataLength); 138 int encodedDataLength);
137 void didDownloadData(const Resource*, int dataLength, int encodedDataLength); 139 void didDownloadData(const Resource*, int dataLength, int encodedDataLength);
138 bool defersLoading() const; 140 bool defersLoading() const;
139 bool isControlledByServiceWorker() const; 141 bool isControlledByServiceWorker() const;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 286 }
285 287
286 private: 288 private:
287 Member<ResourceFetcher> m_loader; 289 Member<ResourceFetcher> m_loader;
288 bool m_previousState; 290 bool m_previousState;
289 }; 291 };
290 292
291 } // namespace blink 293 } // namespace blink
292 294
293 #endif // ResourceFetcher_h 295 #endif // ResourceFetcher_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698