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

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

Issue 2896623003: Added web::NavigationContext::GetPageTransition. (Closed)
Patch Set: Fixed condition for SetIsCreatedFromHashChange call 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/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 2e3d3386c103656f529970d5479598c53d34d358..b9b090ad6b211cfbdaf6c9b79cc7b1398e0901ad 100644
--- a/ios/web/web_state/navigation_context_impl.h
+++ b/ios/web/web_state/navigation_context_impl.h
@@ -21,7 +21,8 @@ class NavigationContextImpl : public NavigationContext {
// Response headers will ne null.
static std::unique_ptr<NavigationContextImpl> CreateNavigationContext(
WebState* web_state,
- const GURL& url);
+ const GURL& url,
+ ui::PageTransition page_transition);
#ifndef NDEBUG
// Returns human readable description of this object.
@@ -31,6 +32,7 @@ class NavigationContextImpl : public NavigationContext {
// NavigationContext overrides:
WebState* GetWebState() override;
const GURL& GetUrl() const override;
+ ui::PageTransition GetPageTransition() const override;
bool IsSameDocument() const override;
bool IsErrorPage() const override;
net::HttpResponseHeaders* GetResponseHeaders() const override;
@@ -50,12 +52,14 @@ class NavigationContextImpl : public NavigationContext {
NavigationContextImpl(
WebState* web_state,
const GURL& url,
+ ui::PageTransition page_transition,
bool is_same_page,
bool is_error_page,
const scoped_refptr<net::HttpResponseHeaders>& response_headers);
WebState* web_state_ = nullptr;
GURL url_;
+ ui::PageTransition page_transition_;
bool is_same_document_ = false;
bool is_error_page_ = false;
scoped_refptr<net::HttpResponseHeaders> response_headers_;

Powered by Google App Engine
This is Rietveld 408576698