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

Side by Side 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: Addressed comments from battre@. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 void SetImagesAllowed(bool allowed); 398 void SetImagesAllowed(bool allowed);
399 void SetMediaAllowed(bool allowed); 399 void SetMediaAllowed(bool allowed);
400 void SetScriptsAllowed(bool allowed); 400 void SetScriptsAllowed(bool allowed);
401 void SetStorageAllowed(bool allowed); 401 void SetStorageAllowed(bool allowed);
402 void SetPluginsAllowed(bool allowed); 402 void SetPluginsAllowed(bool allowed);
403 void SetAllowDisplayOfInsecureContent(bool allowed); 403 void SetAllowDisplayOfInsecureContent(bool allowed);
404 void SetAllowRunningOfInsecureContent(bool allowed); 404 void SetAllowRunningOfInsecureContent(bool allowed);
405 void SetAutoplayAllowed(bool allowed); 405 void SetAutoplayAllowed(bool allowed);
406 void DumpPermissionClientCallbacks(); 406 void DumpPermissionClientCallbacks();
407 407
408 // Sets up a mock DocumentSubresourceFilter to disallow subsequent subresource
409 // loads of the current document with the given path |suffixes|. The filter is
410 // created and injected even if |suffixes| is empty.
Mike West 2016/06/01 13:43:18 Aside: Does an empty suffix mean that everything i
engedy 2016/06/02 23:07:19 Clarified in the comment.
411 void SetDisallowedSubresourcePathSuffixes(
412 const std::vector<std::string>& suffixes);
413
408 // This function sets a flag that tells the test_shell to dump all calls 414 // This function sets a flag that tells the test_shell to dump all calls
409 // to window.status(). 415 // to window.status().
410 // It takes no arguments, and ignores any that may be present. 416 // It takes no arguments, and ignores any that may be present.
411 void DumpWindowStatusChanges(); 417 void DumpWindowStatusChanges();
412 418
413 // This function sets a flag that tells the test_shell to dump all 419 // This function sets a flag that tells the test_shell to dump all
414 // the lines of descriptive text about spellcheck execution. 420 // the lines of descriptive text about spellcheck execution.
415 void DumpSpellCheckCallbacks(); 421 void DumpSpellCheckCallbacks();
416 422
417 // This function sets a flag that tells the test_shell to print out a text 423 // This function sets a flag that tells the test_shell to print out a text
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; 651 std::set<blink::WebWidget*> widgets_with_scheduled_animations_;
646 652
647 base::WeakPtrFactory<TestRunner> weak_factory_; 653 base::WeakPtrFactory<TestRunner> weak_factory_;
648 654
649 DISALLOW_COPY_AND_ASSIGN(TestRunner); 655 DISALLOW_COPY_AND_ASSIGN(TestRunner);
650 }; 656 };
651 657
652 } // namespace test_runner 658 } // namespace test_runner
653 659
654 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 660 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698