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

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

Issue 2535383003: Collapse images disallowed by the Safe Browsing Subresource Filter. (Closed)
Patch Set: Rebase. 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 b35a7fb32398365dbe170cba75d6a5effea5d0ac..933d6d78f482b813a5aaba97e782bc27096396c1 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:
@@ -116,16 +115,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