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

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

Issue 2896623003: Added web::NavigationContext::GetPageTransition. (Closed)
Patch Set: Rebased 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 5ea8139e6db4fcc56441a2df181922f4347f0461..ebb6608adf6ba06b0e049bc780cde98b461312f1 100644
--- a/ios/web/web_state/navigation_context_impl.h
+++ b/ios/web/web_state/navigation_context_impl.h
@@ -22,7 +22,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.
@@ -32,6 +33,7 @@ class NavigationContextImpl : public NavigationContext {
// NavigationContext overrides:
WebState* GetWebState() override;
const GURL& GetUrl() const override;
+ ui::PageTransition GetPageTransition() const override;
bool IsSameDocument() const override;
NSError* GetError() const override;
net::HttpResponseHeaders* GetResponseHeaders() const override;
@@ -48,10 +50,13 @@ class NavigationContextImpl : public NavigationContext {
void SetNavigationItemUniqueID(int unique_id);
private:
- NavigationContextImpl(WebState* web_state, const GURL& url);
+ NavigationContextImpl(WebState* web_state,
+ const GURL& url,
+ ui::PageTransition page_transition);
WebState* web_state_ = nullptr;
GURL url_;
+ ui::PageTransition page_transition_;
bool is_same_document_ = false;
base::scoped_nsobject<NSError> error_;
scoped_refptr<net::HttpResponseHeaders> response_headers_;
« 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