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

Unified Diff: headless/public/headless_web_contents.h

Issue 2525903003: Add Page.stopLoading to devtools and --timeout switch to headless_shell (Closed)
Patch Set: Created 4 years, 1 month 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: headless/public/headless_web_contents.h
diff --git a/headless/public/headless_web_contents.h b/headless/public/headless_web_contents.h
index 74dc4df9049d83f4bdc1c8fd42ba83ce736d5cec..85e642592a2737b579d5a9330b5e7640024f9295 100644
--- a/headless/public/headless_web_contents.h
+++ b/headless/public/headless_web_contents.h
@@ -71,6 +71,9 @@ class HEADLESS_EXPORT HeadlessWebContents {
// Close this page. |HeadlessWebContents| object will be destroyed.
virtual void Close() = 0;
+ // Cancels any pending navigation.
+ virtual void Stop() = 0;
+
private:
friend class HeadlessWebContentsImpl;
HeadlessWebContents() {}

Powered by Google App Engine
This is Rietveld 408576698