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() { } |
}; |