| Index: chrome/test/chromedriver/chrome/page_loading_strategy.h
|
| diff --git a/chrome/test/chromedriver/chrome/page_loading_strategy.h b/chrome/test/chromedriver/chrome/page_loading_strategy.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fdf4203b5b0d470cbf58598205ed0f597a1224fa
|
| --- /dev/null
|
| +++ b/chrome/test/chromedriver/chrome/page_loading_strategy.h
|
| @@ -0,0 +1,30 @@
|
| +// 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_PAGE_LOADING_STRATEGY_H_
|
| +#define CHROME_TEST_CHROMEDRIVER_CHROME_PAGE_LOADING_STRATEGY_H_
|
| +
|
| +#include "chrome/test/chromedriver/chrome/status.h"
|
| +
|
| +class Timeout;
|
| +class Status;
|
| +
|
| +class PageLoadingStrategy {
|
| +public:
|
| + enum LoadingState {
|
| + kUnknown,
|
| + kLoading,
|
| + kNotLoading,
|
| + };
|
| +
|
| + virtual ~PageLoadingStrategy() {}
|
| +
|
| + virtual Status IsPendingNavigation(const std::string& frame_id,
|
| + const Timeout* timeout,
|
| + bool* is_pending) = 0;
|
| +
|
| + virtual void set_timed_out(bool timed_out) = 0;
|
| +};
|
| +
|
| +#endif // CHROME_TEST_CHROMEDRIVER_CHROME_PAGE_LOADING_STRATEGY_H_
|
|
|