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

Unified Diff: third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h

Issue 2714573002: Enable websocket filtering via SubresourceFilter (Closed)
Patch Set: actually add html/js files :P Created 3 years, 10 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/public/platform/WebDocumentSubresourceFilter.h
diff --git a/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h b/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h
index 8bc2745f32c6b5bcd7dfad8af42a3e9501743d1f..0f99b274de40037197eb8d5dd1d12040eb6d0f59 100644
--- a/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h
+++ b/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h
@@ -17,6 +17,9 @@ class WebDocumentSubresourceFilter {
virtual ~WebDocumentSubresourceFilter() {}
virtual LoadPolicy getLoadPolicy(const WebURL& resourceUrl,
WebURLRequest::RequestContext) = 0;
+ virtual LoadPolicy getLoadPolicy(const WebURL& resourceUrl) {
+ return getLoadPolicy(resourceUrl, WebURLRequest::RequestContextUnspecified);
+ }
// Report that a resource loaded by the document (not a preload) was
// disallowed.

Powered by Google App Engine
This is Rietveld 408576698