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

Unified Diff: components/test_runner/test_runner.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
Index: components/test_runner/test_runner.h
diff --git a/components/test_runner/test_runner.h b/components/test_runner/test_runner.h
index ea8b8c6eb72c07c1c41c2fdf0e378c1202c849d4..13a0baae8bf044471b3a72d3debd028e05e3a794 100644
--- a/components/test_runner/test_runner.h
+++ b/components/test_runner/test_runner.h
@@ -409,6 +409,13 @@ class TestRunner : public WebTestRunner {
void SetAutoplayAllowed(bool allowed);
void DumpPermissionClientCallbacks();
+ // Sets up a mock DocumentSubresourceFilter to disallow subsequent subresource
+ // loads within the current document with the given path |suffixes|. The
+ // filter is created and injected even if |suffixes| is empty. If |suffixes|
+ // contains the empty string, all subresource loads will be disallowed.
+ void SetDisallowedSubresourcePathSuffixes(
+ const std::vector<std::string>& suffixes);
+
// This function sets a flag that tells the test_shell to dump all calls
// to window.status().
// It takes no arguments, and ignores any that may be present.
« no previous file with comments | « components/test_runner/mock_web_document_subresource_filter.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698