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; |