Chromium Code Reviews| Index: chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h |
| diff --git a/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h b/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1d2988efa0a86e818c715eb4d9448ab930d117f6 |
| --- /dev/null |
| +++ b/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_NON_BLOCKING_NAVIGATION_TRACKER_H_ |
| +#define CHROME_TEST_CHROMEDRIVER_CHROME_NON_BLOCKING_NAVIGATION_TRACKER_H_ |
| + |
| +#include "chrome/test/chromedriver/chrome/page_load_strategy.h" |
| + |
| +class Timeout; |
| +class Status; |
| + |
| +class NonBlockingNavigationTracker : public PageLoadStrategy { |
| +public: |
| + ~NonBlockingNavigationTracker() override; |
| + |
| + NonBlockingNavigationTracker() : timed_out_(false) {} |
|
samuong
2016/07/29 23:33:45
nit: put the constructor first (before the destruc
evajiang
2016/08/01 16:35:46
Done.
|
| + |
| + // Overriden from PageLoadStrategy: |
| + Status IsPendingNavigation(const std::string& frame_id, |
| + const Timeout* timeout, |
| + bool* is_pending) override; |
| + void set_timed_out(bool timed_out) override; |
| + |
| +private: |
| + bool timed_out_; |
| +}; |
| + |
| +#endif // CHROME_TEST_CHROMEDRIVER_CHROME_NON_BLOCKING_NAVIGATION_TRACKER_H_ |