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

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

Issue 2231523002: Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, resolve comment rewrap conflicts. Created 4 years, 2 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 const String& charset, 183 const String& charset,
184 const ResourceFactory&); 184 const ResourceFactory&);
185 void storeResourceTimingInitiatorInformation(Resource*); 185 void storeResourceTimingInitiatorInformation(Resource*);
186 ResourceLoadPriority computeLoadPriority(Resource::Type, 186 ResourceLoadPriority computeLoadPriority(Resource::Type,
187 const FetchRequest&, 187 const FetchRequest&,
188 ResourcePriority::VisibilityStatus); 188 ResourcePriority::VisibilityStatus);
189 189
190 Resource* resourceForStaticData(const FetchRequest&, 190 Resource* resourceForStaticData(const FetchRequest&,
191 const ResourceFactory&, 191 const ResourceFactory&,
192 const SubstituteData&); 192 const SubstituteData&);
193 Resource* resourceForBlockedRequest(const FetchRequest&,
194 const ResourceFactory&);
193 195
194 // RevalidationPolicy enum values are used in UMAs https://crbug.com/579496. 196 // RevalidationPolicy enum values are used in UMAs https://crbug.com/579496.
195 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; 197 enum RevalidationPolicy { Use, Revalidate, Reload, Load };
196 RevalidationPolicy determineRevalidationPolicy(Resource::Type, 198 RevalidationPolicy determineRevalidationPolicy(Resource::Type,
197 const FetchRequest&, 199 const FetchRequest&,
198 Resource* existingResource, 200 Resource* existingResource,
199 bool isStaticData) const; 201 bool isStaticData) const;
200 202
201 void moveCachedNonBlockingResourceToBlocking(Resource*, const FetchRequest&); 203 void moveCachedNonBlockingResourceToBlocking(Resource*, const FetchRequest&);
202 void moveResourceLoaderToNonBlocking(ResourceLoader*); 204 void moveResourceLoaderToNonBlocking(ResourceLoader*);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 289 }
288 290
289 private: 291 private:
290 Member<ResourceFetcher> m_loader; 292 Member<ResourceFetcher> m_loader;
291 bool m_previousState; 293 bool m_previousState;
292 }; 294 };
293 295
294 } // namespace blink 296 } // namespace blink
295 297
296 #endif // ResourceFetcher_h 298 #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