| Index: components/test_runner/test_runner.h
|
| diff --git a/components/test_runner/test_runner.h b/components/test_runner/test_runner.h
|
| index bfb06cfafd7e53694dc63463deeb37ec2e79591e..57c0f0ce1b567d437eb9dc3a6d90342286102e7d 100644
|
| --- a/components/test_runner/test_runner.h
|
| +++ b/components/test_runner/test_runner.h
|
| @@ -135,7 +135,19 @@ class TestRunner : public WebTestRunner {
|
| bool shouldDumpSpellCheckCallbacks() const;
|
| bool shouldWaitUntilExternalURLLoad() const;
|
| const std::set<std::string>* httpHeadersToClear() const;
|
| - void setTopLoadingFrame(blink::WebFrame*, bool);
|
| +
|
| + // To be called when |frame| starts loading - TestRunner will check if
|
| + // there is currently no top-loading-frame being tracked and if so, then it
|
| + // will return true and start tracking |frame| as the top-loading-frame.
|
| + bool tryToSetTopLoadingFrame(blink::WebFrame* frame);
|
| +
|
| + // To be called when |frame| finishes loading - TestRunner will check if
|
| + // |frame| is currently tracked as the top-loading-frame, and if yes, then it
|
| + // will return true, stop top-loading-frame tracking, and potentially finish
|
| + // the test (unless testRunner.waitUntilDone() was called and/or there are
|
| + // pending load requests in WorkQueue).
|
| + bool tryToClearTopLoadingFrame(blink::WebFrame*);
|
| +
|
| blink::WebFrame* topLoadingFrame() const;
|
| void policyDelegateDone();
|
| bool policyDelegateEnabled() const;
|
| @@ -530,6 +542,8 @@ class TestRunner : public WebTestRunner {
|
| ///////////////////////////////////////////////////////////////////////////
|
| // Internal helpers
|
|
|
| + bool IsFramePartOfMainTestWindow(blink::WebFrame*) const;
|
| +
|
| void CheckResponseMimeType();
|
| void CompleteNotifyDone();
|
|
|
|
|