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

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..d0e9062d342c6aaf8d12618ff9764d36f4848e56 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 {
@@ -52,6 +53,11 @@ class CONTENT_EXPORT ResourceFetcher {
virtual void SetBody(const std::string& body) = 0;
virtual void SetHeader(const std::string& header,
const std::string& value) = 0;
+ virtual void SetSkipServiceWorker(bool skip_service_worker) = 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.

Powered by Google App Engine
This is Rietveld 408576698