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

Unified Diff: ios/web/web_state/navigation_context_impl.h

Issue 2903883002: Added NavigationContext::IsPost. (Closed)
Patch Set: Self review 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
« no previous file with comments | « ios/web/web_state/navigation_callbacks_inttest.mm ('k') | ios/web/web_state/navigation_context_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ebb6608adf6ba06b0e049bc780cde98b461312f1..6de51e7a781a4fd514aebbf172fc5c53210eb651 100644
--- a/ios/web/web_state/navigation_context_impl.h
+++ b/ios/web/web_state/navigation_context_impl.h
@@ -35,12 +35,14 @@ class NavigationContextImpl : public NavigationContext {
const GURL& GetUrl() const override;
ui::PageTransition GetPageTransition() const override;
bool IsSameDocument() const override;
+ bool IsPost() const override;
NSError* GetError() const override;
net::HttpResponseHeaders* GetResponseHeaders() const override;
~NavigationContextImpl() override;
// Setters for navigation context data members.
void SetIsSameDocument(bool is_same_document);
+ void SetIsPost(bool is_post);
void SetError(NSError* error);
void SetResponseHeaders(
const scoped_refptr<net::HttpResponseHeaders>& response_headers);
@@ -58,6 +60,7 @@ class NavigationContextImpl : public NavigationContext {
GURL url_;
ui::PageTransition page_transition_;
bool is_same_document_ = false;
+ bool is_post_ = false;
base::scoped_nsobject<NSError> error_;
scoped_refptr<net::HttpResponseHeaders> response_headers_;
int navigation_item_unique_id_ = -1;
« no previous file with comments | « ios/web/web_state/navigation_callbacks_inttest.mm ('k') | ios/web/web_state/navigation_context_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698