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

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: 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
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 b0292e19c771735376235e3263e762ede15f2984..4be3221f61733cccf41ab1b43bd8c9c44124f0f8 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.reset();
}
+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