| Index: third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp b/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
|
| index 67c6163ab52a03be8f2e45be2e5a44e0ae4f1a71..eb3b2854af599f3802527ced4377bdbe111a34b2 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
|
| @@ -26,16 +26,18 @@ class TestDocumentSubresourceFilter : public WebDocumentSubresourceFilter {
|
| explicit TestDocumentSubresourceFilter(bool allowLoads)
|
| : m_allowLoads(allowLoads) {}
|
|
|
| - bool allowLoad(const WebURL& resourceUrl,
|
| - WebURLRequest::RequestContext) override {
|
| + LoadPolicy getLoadPolicy(const WebURL& resourceUrl,
|
| + WebURLRequest::RequestContext) override {
|
| std::string resourcePath = WebString(KURL(resourceUrl).path()).utf8();
|
| if (std::find(m_queriedSubresourcePaths.begin(),
|
| m_queriedSubresourcePaths.end(),
|
| resourcePath) == m_queriedSubresourcePaths.end())
|
| m_queriedSubresourcePaths.push_back(resourcePath);
|
| - return m_allowLoads;
|
| + return m_allowLoads ? Allow : Filter;
|
| }
|
|
|
| + void reportFilteredLoad() override {}
|
| +
|
| const std::vector<std::string>& queriedSubresourcePaths() const {
|
| return m_queriedSubresourcePaths;
|
| }
|
|
|