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

Unified Diff: content/public/browser/navigation_handle.h

Issue 1414723008: Add a way to cancel deferred navigations in NavigationHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 3b2bbadda772a2f31a97b5faff489b0b730728c9..e701f3e250478d44d7dc63bf6f9a62e7634420b5 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -93,6 +93,11 @@ class CONTENT_EXPORT NavigationHandle {
// Resumes a navigation that was previously deferred by a NavigationThrottle.
virtual void Resume() = 0;
+ // Cancels a navigation that was previously paused by a NavigationThrottle.
+ // If |ignore| is true, the issuer will act as if the request was never
nasko 2015/11/04 22:44:27 Issuer of the cancellation or of the navigation?
clamy 2015/11/05 15:52:24 Changed this comment following the change of argum
+ // issued.
+ virtual void CancelDeferredNavigation(bool ignore) = 0;
+
// Testing methods ----------------------------------------------------------
//
// The following methods should be used exclusively for writing unit tests.

Powered by Google App Engine
This is Rietveld 408576698