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

Side by Side Diff: components/test_runner/test_runner.h

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool shouldDumpPingLoaderCallbacks() const; 97 bool shouldDumpPingLoaderCallbacks() const;
98 bool shouldDumpUserGestureInFrameLoadCallbacks() const; 98 bool shouldDumpUserGestureInFrameLoadCallbacks() const;
99 bool shouldDumpTitleChanges() const; 99 bool shouldDumpTitleChanges() const;
100 bool shouldDumpIconChanges() const; 100 bool shouldDumpIconChanges() const;
101 bool shouldDumpCreateView() const; 101 bool shouldDumpCreateView() const;
102 bool canOpenWindows() const; 102 bool canOpenWindows() const;
103 bool shouldDumpResourceLoadCallbacks() const; 103 bool shouldDumpResourceLoadCallbacks() const;
104 bool shouldDumpResourceRequestCallbacks() const; 104 bool shouldDumpResourceRequestCallbacks() const;
105 bool shouldDumpResourceResponseMIMETypes() const; 105 bool shouldDumpResourceResponseMIMETypes() const;
106 bool shouldDumpStatusCallbacks() const; 106 bool shouldDumpStatusCallbacks() const;
107 bool shouldDumpProgressFinishedCallback() const;
108 bool shouldDumpSpellCheckCallbacks() const; 107 bool shouldDumpSpellCheckCallbacks() const;
109 bool shouldWaitUntilExternalURLLoad() const; 108 bool shouldWaitUntilExternalURLLoad() const;
110 const std::set<std::string>* httpHeadersToClear() const; 109 const std::set<std::string>* httpHeadersToClear() const;
111 void setTopLoadingFrame(blink::WebFrame*, bool); 110 void setTopLoadingFrame(blink::WebFrame*, bool);
112 blink::WebFrame* topLoadingFrame() const; 111 blink::WebFrame* topLoadingFrame() const;
113 void policyDelegateDone(); 112 void policyDelegateDone();
114 bool policyDelegateEnabled() const; 113 bool policyDelegateEnabled() const;
115 bool policyDelegateIsPermissive() const; 114 bool policyDelegateIsPermissive() const;
116 bool policyDelegateShouldNotifyDone() const; 115 bool policyDelegateShouldNotifyDone() const;
117 bool shouldInterceptPostMessage() const; 116 bool shouldInterceptPostMessage() const;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 void SetPluginsAllowed(bool allowed); 427 void SetPluginsAllowed(bool allowed);
429 void SetAllowDisplayOfInsecureContent(bool allowed); 428 void SetAllowDisplayOfInsecureContent(bool allowed);
430 void SetAllowRunningOfInsecureContent(bool allowed); 429 void SetAllowRunningOfInsecureContent(bool allowed);
431 void DumpPermissionClientCallbacks(); 430 void DumpPermissionClientCallbacks();
432 431
433 // This function sets a flag that tells the test_shell to dump all calls 432 // This function sets a flag that tells the test_shell to dump all calls
434 // to window.status(). 433 // to window.status().
435 // It takes no arguments, and ignores any that may be present. 434 // It takes no arguments, and ignores any that may be present.
436 void DumpWindowStatusChanges(); 435 void DumpWindowStatusChanges();
437 436
438 // This function sets a flag that tells the test_shell to print a line of
439 // descriptive text for the progress finished callback. It takes no
440 // arguments, and ignores any that may be present.
441 void DumpProgressFinishedCallback();
442
443 // This function sets a flag that tells the test_shell to dump all 437 // This function sets a flag that tells the test_shell to dump all
444 // the lines of descriptive text about spellcheck execution. 438 // the lines of descriptive text about spellcheck execution.
445 void DumpSpellCheckCallbacks(); 439 void DumpSpellCheckCallbacks();
446 440
447 // This function sets a flag that tells the test_shell to print out a text 441 // This function sets a flag that tells the test_shell to print out a text
448 // representation of the back/forward list. It ignores all arguments. 442 // representation of the back/forward list. It ignores all arguments.
449 void DumpBackForwardList(); 443 void DumpBackForwardList();
450 444
451 void DumpSelectionRect(); 445 void DumpSelectionRect();
452 446
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 // request callback. 752 // request callback.
759 bool dump_resource_request_callbacks_; 753 bool dump_resource_request_callbacks_;
760 754
761 // If true, the test_shell will output the MIME type for each resource that 755 // If true, the test_shell will output the MIME type for each resource that
762 // was loaded. 756 // was loaded.
763 bool dump_resource_response_mime_types_; 757 bool dump_resource_response_mime_types_;
764 758
765 // If true, the test_shell will dump all changes to window.status. 759 // If true, the test_shell will dump all changes to window.status.
766 bool dump_window_status_changes_; 760 bool dump_window_status_changes_;
767 761
768 // If true, the test_shell will output a descriptive line for the progress
769 // finished callback.
770 bool dump_progress_finished_callback_;
771
772 // If true, the test_shell will output descriptive test for spellcheck 762 // If true, the test_shell will output descriptive test for spellcheck
773 // execution. 763 // execution.
774 bool dump_spell_check_callbacks_; 764 bool dump_spell_check_callbacks_;
775 765
776 // If true, the test_shell will produce a dump of the back forward list as 766 // If true, the test_shell will produce a dump of the back forward list as
777 // well. 767 // well.
778 bool dump_back_forward_list_; 768 bool dump_back_forward_list_;
779 769
780 // If true, the test_shell will draw the bounds of the current selection rect 770 // If true, the test_shell will draw the bounds of the current selection rect
781 // taking possible transforms of the selection rect into account. 771 // taking possible transforms of the selection rect into account.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 bool use_mock_theme_; 827 bool use_mock_theme_;
838 828
839 base::WeakPtrFactory<TestRunner> weak_factory_; 829 base::WeakPtrFactory<TestRunner> weak_factory_;
840 830
841 DISALLOW_COPY_AND_ASSIGN(TestRunner); 831 DISALLOW_COPY_AND_ASSIGN(TestRunner);
842 }; 832 };
843 833
844 } // namespace test_runner 834 } // namespace test_runner
845 835
846 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 836 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698