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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 312103004: Content Shell test_runner hooks for <audio> and <video> blocking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // arguments, and ignores any that may be present. 409 // arguments, and ignores any that may be present.
410 void DumpResourceRequestCallbacks(); 410 void DumpResourceRequestCallbacks();
411 411
412 // This function sets a flag that tells the test_shell to dump the MIME type 412 // This function sets a flag that tells the test_shell to dump the MIME type
413 // for each resource that was loaded. It takes no arguments, and ignores any 413 // for each resource that was loaded. It takes no arguments, and ignores any
414 // that may be present. 414 // that may be present.
415 void DumpResourceResponseMIMETypes(); 415 void DumpResourceResponseMIMETypes();
416 416
417 // WebPermissionClient related. 417 // WebPermissionClient related.
418 void SetImagesAllowed(bool allowed); 418 void SetImagesAllowed(bool allowed);
419 void SetMediaAllowed(bool allowed);
419 void SetScriptsAllowed(bool allowed); 420 void SetScriptsAllowed(bool allowed);
420 void SetStorageAllowed(bool allowed); 421 void SetStorageAllowed(bool allowed);
421 void SetPluginsAllowed(bool allowed); 422 void SetPluginsAllowed(bool allowed);
422 void SetAllowDisplayOfInsecureContent(bool allowed); 423 void SetAllowDisplayOfInsecureContent(bool allowed);
423 void SetAllowRunningOfInsecureContent(bool allowed); 424 void SetAllowRunningOfInsecureContent(bool allowed);
424 void DumpPermissionClientCallbacks(); 425 void DumpPermissionClientCallbacks();
425 426
426 // This function sets a flag that tells the test_shell to dump all calls 427 // This function sets a flag that tells the test_shell to dump all calls
427 // to window.status(). 428 // to window.status().
428 // It takes no arguments, and ignores any that may be present. 429 // It takes no arguments, and ignores any that may be present.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 bool use_mock_theme_; 735 bool use_mock_theme_;
735 736
736 base::WeakPtrFactory<TestRunner> weak_factory_; 737 base::WeakPtrFactory<TestRunner> weak_factory_;
737 738
738 DISALLOW_COPY_AND_ASSIGN(TestRunner); 739 DISALLOW_COPY_AND_ASSIGN(TestRunner);
739 }; 740 };
740 741
741 } // namespace content 742 } // namespace content
742 743
743 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 744 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebPermissions.cpp ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698