Chromium Code Reviews| Index: chrome/test/chromedriver/chrome/page_load_strategy.h |
| diff --git a/chrome/test/chromedriver/chrome/page_load_strategy.h b/chrome/test/chromedriver/chrome/page_load_strategy.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..16fbbc22474be5f43693e2d62a13987fd28bca26 |
| --- /dev/null |
| +++ b/chrome/test/chromedriver/chrome/page_load_strategy.h |
| @@ -0,0 +1,44 @@ |
| +// 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_LOAD_STRATEGY_H_ |
| +#define CHROME_TEST_CHROMEDRIVER_CHROME_PAGE_LOAD_STRATEGY_H_ |
| + |
| +#include "chrome/test/chromedriver/chrome/status.h" |
| + |
| +struct BrowserInfo; |
| +class DevToolsClient; |
| +class JavaScriptDialogManager; |
| +class Status; |
| +class Timeout; |
| + |
| +class PageLoadStrategy { |
| +public: |
|
samuong
2016/07/29 23:33:45
nit: one space before "public:"
samuong
2016/07/29 23:33:46
nit: one space before "public:"
evajiang
2016/08/01 16:35:46
Done.
|
| + enum LoadingState { |
| + kUnknown, |
| + kLoading, |
| + kNotLoading, |
| + }; |
| + |
| + virtual ~PageLoadStrategy() {} |
| + |
| + static PageLoadStrategy* Create( |
| + std::string strategy, |
| + DevToolsClient* client, |
| + const BrowserInfo* browser_info, |
| + const JavaScriptDialogManager* dialog_manager); |
| + |
| + virtual Status IsPendingNavigation(const std::string& frame_id, |
| + const Timeout* timeout, |
| + bool* is_pending) = 0; |
| + |
| + virtual void set_timed_out(bool timed_out) = 0; |
| + |
| + // Types of page load strategies. |
| + static const char kNormal[]; |
| + static const char kNone[]; |
| + static const char kEager[]; |
| +}; |
| + |
| +#endif // CHROME_TEST_CHROMEDRIVER_CHROME_PAGE_LOAD_STRATEGY_H_ |
|
samuong
2016/07/29 23:33:45
nit: two spaces before "//"
samuong
2016/07/29 23:33:45
nit: two spaces before "//"
evajiang
2016/08/01 16:35:46
Done.
|