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

Unified Diff: headless/lib/browser/headless_web_contents_impl.cc

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/lib/browser/headless_web_contents_impl.cc
diff --git a/headless/lib/browser/headless_web_contents_impl.cc b/headless/lib/browser/headless_web_contents_impl.cc
index dabdee17482ebde14bec6bffdc7e108068ecac94..36dfea6d389386cc3356944bc2f01cc5061ea5b2 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -204,6 +204,11 @@ void HeadlessWebContentsImpl::Close() {
browser_context()->DestroyWebContents(this);
}
+void HeadlessWebContentsImpl::Stop() {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
+ web_contents_->Stop();
+}
+
std::string HeadlessWebContentsImpl::GetDevToolsAgentHostId() {
return agent_host_->GetId();
}

Powered by Google App Engine
This is Rietveld 408576698