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

Unified Diff: ios/web/public/web_state/navigation_context.h

Issue 2901633002: Replaced NavigationContext::IsErrorPage with NavigationContext::GetError (Closed)
Patch Set: 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: 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
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_observer_util.mm ('k') | ios/web/public/web_state/web_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698