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

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

Issue 2724903004: Add ELEMENT_TYPE_WEBSOCKET to subresource filter (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bb186309803f187db46d5a6dc6bfc311c007ce71 100644
--- a/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h
+++ b/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h
@@ -14,9 +14,11 @@ class WebURL;
class WebDocumentSubresourceFilter {
public:
enum LoadPolicy { Allow, Disallow, WouldDisallow };
+
virtual ~WebDocumentSubresourceFilter() {}
virtual LoadPolicy getLoadPolicy(const WebURL& resourceUrl,
WebURLRequest::RequestContext) = 0;
+ virtual LoadPolicy getLoadPolicyForWebSocketConnect(const WebURL&) = 0;
// Report that a resource loaded by the document (not a preload) was
// disallowed.
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698