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

Unified Diff: third_party/WebKit/Source/web/WebDataSourceImpl.cpp

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/Source/web/WebDataSourceImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
index 81b720e1ebe07717dd375ccafa31189ba70fa577..acc3311a1bdd8a498a964200b10f57d2bb173c39 100644
--- a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
@@ -31,9 +31,11 @@
#include "web/WebDataSourceImpl.h"
#include "core/dom/Document.h"
+#include "public/platform/WebDocumentSubresourceFilter.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebURLError.h"
#include "public/platform/WebVector.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -147,6 +149,11 @@ void WebDataSourceImpl::detachFromFrame()
m_extraData.clear();
}
+void WebDataSourceImpl::setSubresourceFilter(WebDocumentSubresourceFilter* subresourceFilter)
+{
+ DocumentLoader::setSubresourceFilter(WTF::adoptPtr(subresourceFilter));
+}
+
DEFINE_TRACE(WebDataSourceImpl)
{
DocumentLoader::trace(visitor);

Powered by Google App Engine
This is Rietveld 408576698