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

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: Addressed comments 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..80ff291a9d5a9f5a65e7c423a8949b89ec407d20 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -93,6 +93,12 @@ class CONTENT_EXPORT NavigationHandle {
// Resumes a navigation that was previously deferred by a NavigationThrottle.
virtual void Resume() = 0;
+ // Cancels a navigation that was previously deferred by a NavigationThrottle.
+ // |result| should be equal to NavigationThrottle::CANCEL or
+ // NavigationThrottle::CANCEL_AND_IGNORE.
+ virtual void CancelDeferredNavigation(
+ NavigationThrottle::ThrottleCheckResult result) = 0;
+
// Testing methods ----------------------------------------------------------
//
// The following methods should be used exclusively for writing unit tests.
« no previous file with comments | « content/browser/loader/navigation_resource_throttle.cc ('k') | content/public/browser/navigation_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698