| Index: ios/web/web_state/navigation_context_impl.h
|
| diff --git a/ios/web/web_state/navigation_context_impl.h b/ios/web/web_state/navigation_context_impl.h
|
| index 5756cedf4a711abf6da402cadb8935a7261eae6d..de9a9a763df16c5506a22fa0269e73f40cc1d993 100644
|
| --- a/ios/web/web_state/navigation_context_impl.h
|
| +++ b/ios/web/web_state/navigation_context_impl.h
|
| @@ -18,6 +18,12 @@ namespace web {
|
| class NavigationContextImpl : public NavigationContext {
|
| public:
|
| // Creates navigation context for sucessful navigation to a different page.
|
| + // Response headers will ne null.
|
| + static std::unique_ptr<NavigationContextImpl> CreateNavigationContext(
|
| + WebState* web_state,
|
| + const GURL& url);
|
| +
|
| + // Creates navigation context for sucessful navigation to a different page.
|
| static std::unique_ptr<NavigationContextImpl> CreateNavigationContext(
|
| WebState* web_state,
|
| const GURL& url,
|
| @@ -47,6 +53,12 @@ class NavigationContextImpl : public NavigationContext {
|
| net::HttpResponseHeaders* GetResponseHeaders() const override;
|
| ~NavigationContextImpl() override;
|
|
|
| + // Setters for navigation context data members.
|
| + void SetIsSameDocument(bool is_same_document);
|
| + void SetIsErrorPage(bool is_error_page);
|
| + void SetResponseHeaders(
|
| + const scoped_refptr<net::HttpResponseHeaders>& response_headers);
|
| +
|
| private:
|
| NavigationContextImpl(
|
| WebState* web_state,
|
|
|