OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |