Index: ios/web/public/web_state/navigation_context.h |
diff --git a/ios/web/public/web_state/navigation_context.h b/ios/web/public/web_state/navigation_context.h |
index 95e07c0b37226f580f04ab3a10ab989c4906822d..b8d5b468a80f2b7c002892595418eb94a4f53db2 100644 |
--- a/ios/web/public/web_state/navigation_context.h |
+++ b/ios/web/public/web_state/navigation_context.h |
@@ -5,6 +5,8 @@ |
#ifndef IOS_WEB_PUBLIC_WEB_STATE_NAVIGATION_CONTEXT_H_ |
#define IOS_WEB_PUBLIC_WEB_STATE_NAVIGATION_CONTEXT_H_ |
+#import <Foundation/Foundation.h> |
+ |
class GURL; |
namespace net { |
@@ -35,8 +37,8 @@ class NavigationContext { |
// * same document history navigation |
virtual bool IsSameDocument() const = 0; |
- // Whether the navigation resulted in an error page. |
- virtual bool IsErrorPage() const = 0; |
+ // Returns error if the navigation has failed. |
+ virtual NSError* GetError() const = 0; |
// Returns the response headers for the request, or null if there aren't any |
// response headers or they have not been received yet. The response headers |