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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h

Issue 2660213003: Split requestResource into request preparation and loading (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
index bfe2ae9c4937250cfbaad225fa0d67aba7496598..9f9797d0340b54ef5afa048e5402c17755dc827d 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
@@ -171,6 +171,18 @@ class PLATFORM_EXPORT ResourceFetcher
FetchRequest::DeferOption = FetchRequest::NoDefer,
bool forPreload = false);
+ struct PrepareRequestReturnValues {
Charlie Harrison 2017/01/30 22:02:58 delete unused struct.
+ bool isStaticData{false};
+ bool shouldContinue{false};
+ };
+
+ Resource* prepareRequest(FetchRequest&,
Charlie Harrison 2017/01/30 22:02:58 Please document this method. It is a bit strange f
+ const ResourceFactory&,
+ const SubstituteData&,
+ unsigned long identifier,
+ bool& isStaticData,
+ bool& shouldContinue);
+
Resource* resourceForStaticData(const FetchRequest&,
const ResourceFactory&,
const SubstituteData&);

Powered by Google App Engine
This is Rietveld 408576698