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

Unified Diff: content/public/renderer/resource_fetcher.h

Issue 840553003: Use a FrameAssociatedLoader when downloading image resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/public/renderer/resource_fetcher.h
diff --git a/content/public/renderer/resource_fetcher.h b/content/public/renderer/resource_fetcher.h
index 5c010f999653a390f4c9d689c71a648afe8c6e37..778cadc38faa0c3201ec67adbd2860ecd485acb6 100644
--- a/content/public/renderer/resource_fetcher.h
+++ b/content/public/renderer/resource_fetcher.h
@@ -20,6 +20,7 @@ class TimeDelta;
namespace blink {
class WebFrame;
class WebURLResponse;
+struct WebURLLoaderOptions;
}
namespace content {
@@ -53,6 +54,10 @@ class CONTENT_EXPORT ResourceFetcher {
virtual void SetHeader(const std::string& header,
const std::string& value) = 0;
+ // Associate the corresponding WebURLLoaderOptions to the loader. Must be
+ // called before Start. Used if the LoaderType is FRAME_ASSOCIATED_LOADER.
+ virtual void SetLoaderOptions(const blink::WebURLLoaderOptions& options) = 0;
+
// Starts the request using the specified frame. Calls |callback| when
// done.
virtual void Start(blink::WebFrame* frame,

Powered by Google App Engine
This is Rietveld 408576698