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

Unified Diff: content/public/test/navigation_simulator.h

Issue 2889913002: [subresource_filter] Remove Forwarding NavigationThrottles (Closed)
Patch Set: shivanisha review Created 3 years, 7 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: content/public/test/navigation_simulator.h
diff --git a/content/public/test/navigation_simulator.h b/content/public/test/navigation_simulator.h
index ac76f92e8d9b5bafb2c4ca59ea7caee0cc6b4ea7..2c33c61b1ef46912612f582358c8a07eeaa593cd 100644
--- a/content/public/test/navigation_simulator.h
+++ b/content/public/test/navigation_simulator.h
@@ -19,6 +19,7 @@ class GURL;
namespace content {
+class NavigationHandle;
class NavigationHandleImpl;
class RenderFrameHost;
class TestRenderFrameHost;
@@ -145,6 +146,11 @@ class NavigationSimulator : public WebContentsObserver {
// It is an error to call this before Start() is called.
virtual NavigationThrottle::ThrottleCheckResult GetLastThrottleCheckResult();
+ // Returns the NavigationHandle associated with the navigation being
+ // simulated. It is an error to call this before Start() or after the
+ // navigation has finished (successfully or not).
+ virtual NavigationHandle* GetNavigationHandle() const;
+
private:
// WebContentsObserver:
void DidStartNavigation(NavigationHandle* navigation_handle) override;

Powered by Google App Engine
This is Rietveld 408576698