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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2535383003: Collapse images disallowed by the Safe Browsing Subresource Filter. (Closed)
Patch Set: Initial draft. Created 4 years 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/core/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index e65e70280feecf1d6a049a6f5b2c667753149d23..ab63c8af4eeb34aa42b6de2286cf99fc06cab45a 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -46,7 +46,6 @@ class DocumentLoader;
class LocalFrame;
class ResourceError;
class ResourceResponse;
-class ResourceRequest;
class CORE_EXPORT FrameFetchContext final : public FetchContext {
public:
@@ -113,16 +112,18 @@ class CORE_EXPORT FrameFetchContext final : public FetchContext {
void addResourceTiming(const ResourceTimingInfo&) override;
bool allowImage(bool imagesEnabled, const KURL&) const override;
- bool canRequest(Resource::Type,
- const ResourceRequest&,
- const KURL&,
- const ResourceLoaderOptions&,
- bool forPreload,
- FetchRequest::OriginRestriction) const override;
- bool allowResponse(Resource::Type,
- const ResourceRequest&,
- const KURL&,
- const ResourceLoaderOptions&) const override;
+ ResourceRequestBlockedReason canRequest(
+ Resource::Type,
+ const ResourceRequest&,
+ const KURL&,
+ const ResourceLoaderOptions&,
+ bool forPreload,
+ FetchRequest::OriginRestriction) const override;
+ ResourceRequestBlockedReason allowResponse(
+ Resource::Type,
+ const ResourceRequest&,
+ const KURL&,
+ const ResourceLoaderOptions&) const override;
bool isControlledByServiceWorker() const override;
int64_t serviceWorkerID() const override;

Powered by Google App Engine
This is Rietveld 408576698