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

Unified Diff: chrome/test/chromedriver/chrome/navigation_tracker_none.h

Issue 2125123002: [chromedriver] Add page loading strategy to capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge conflicts Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/chromedriver/chrome/navigation_tracker_none.h
diff --git a/chrome/test/chromedriver/chrome/navigation_tracker_none.h b/chrome/test/chromedriver/chrome/navigation_tracker_none.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e669014b43642a138ac1515a20bd429f7790e46
--- /dev/null
+++ b/chrome/test/chromedriver/chrome/navigation_tracker_none.h
@@ -0,0 +1,28 @@
+// 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_NAVIGATION_TRACKER_NONE_H_
+#define CHROME_TEST_CHROMEDRIVER_CHROME_NAVIGATION_TRACKER_NONE_H_
+
+#include "chrome/test/chromedriver/chrome/page_loading_strategy.h"
+
+class Timeout;
+class Status;
+
+class NavigationTrackerNone : public PageLoadingStrategy {
+public:
+ ~NavigationTrackerNone() override;
+
+ NavigationTrackerNone() : timed_out_(false) {}
+
+ // Overriden from PageLoadingStrategy:
+ 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_NAVIGATION_TRACKER_NONE_H_

Powered by Google App Engine
This is Rietveld 408576698