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

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

Issue 2881933003: Store NavigationItem's unique ID in navigation context. (Closed)
Patch Set: 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 | « no previous file | 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 14a56c9df22fc587d0d3441b0094a0e6ac7107de..2e3d3386c103656f529970d5479598c53d34d358 100644
--- a/ios/web/web_state/navigation_context_impl.h
+++ b/ios/web/web_state/navigation_context_impl.h
@@ -42,6 +42,10 @@ class NavigationContextImpl : public NavigationContext {
void SetResponseHeaders(
const scoped_refptr<net::HttpResponseHeaders>& response_headers);
+ // Optional unique id of the navigation item associated with this navigaiton.
+ int GetNavigationItemUniqueID() const;
+ void SetNavigationItemUniqueID(int unique_id);
+
private:
NavigationContextImpl(
WebState* web_state,
@@ -55,6 +59,7 @@ class NavigationContextImpl : public NavigationContext {
bool is_same_document_ = false;
bool is_error_page_ = false;
scoped_refptr<net::HttpResponseHeaders> response_headers_;
+ int navigation_item_unique_id_ = -1;
DISALLOW_COPY_AND_ASSIGN(NavigationContextImpl);
};
« no previous file with comments | « no previous file | ios/web/web_state/navigation_context_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698