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

Unified Diff: third_party/WebKit/public/web/WebDataSource.h

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement RenderFrameObserver::OnDestruct introduced by rebase. Created 4 years, 6 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/public/platform/WebDocumentSubresourceFilter.h ('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/web/WebDataSource.h
diff --git a/third_party/WebKit/public/web/WebDataSource.h b/third_party/WebKit/public/web/WebDataSource.h
index a705fb41051e86b851598954db82be4225b49122..cd4fd5b026d2b51977a649286a9efbfdcf9ced17 100644
--- a/third_party/WebKit/public/web/WebDataSource.h
+++ b/third_party/WebKit/public/web/WebDataSource.h
@@ -37,6 +37,7 @@
namespace blink {
+class WebDocumentSubresourceFilter;
class WebURL;
class WebURLRequest;
class WebURLResponse;
@@ -104,6 +105,12 @@ public:
// the user may have already recorded the original value.
virtual void setNavigationStartTime(double) = 0;
+ // Allows the embedder to inject a filter that will be consulted for each
+ // subsequent subresource load, and gets the final say in deciding whether
+ // or not to allow the load. The passed-in filter object is deleted when the
+ // datasource is destroyed or when a new filter is set.
+ virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0;
+
protected:
~WebDataSource() { }
};
« no previous file with comments | « third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698