| 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..cbfcc19c42b6d3b7d925a0661e070ccdd7ed46f1 100644
|
| --- a/ios/web/public/web_state/navigation_context.h
|
| +++ b/ios/web/public/web_state/navigation_context.h
|
| @@ -42,6 +42,15 @@ class NavigationContext {
|
| // * same document history navigation
|
| virtual bool IsSameDocument() const = 0;
|
|
|
| + // Whether the initial navigation is done using HTTP POST method. This will
|
| + // not change during the navigation (even 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;
|
|
|
|
|