| 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 ee7073b63b536424863b68a38991377ecb1da470..6737c993fb9ac6674cb21698558143b5db0ce798 100644
|
| --- a/ios/web/public/web_state/navigation_context.h
|
| +++ b/ios/web/public/web_state/navigation_context.h
|
| @@ -42,6 +42,14 @@ class NavigationContext {
|
| // * same document history navigation
|
| virtual bool IsSameDocument() const = 0;
|
|
|
| + // Whether the navigation is done using HTTP POST method. This may change
|
| + // during the navigation (e.g. after encountering a server redirect).
|
| + //
|
| + // Note: page and frame navigations can only be done using POST or GET
|
| + // methods Therefore API exposes only |bool IsPost()| as opposed to
|
| + // |const std::string& GetMethod()| method.
|
| + virtual bool IsPost() const = 0;
|
| +
|
| // Returns error if the navigation has failed.
|
| virtual NSError* GetError() const = 0;
|
|
|
|
|