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

Unified Diff: ios/web/public/navigation_item.h

Issue 1028603004: Upstream ios/web/navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-testing
Patch Set: Rebase and resync Created 5 years, 9 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/navigation/web_load_params.mm ('k') | ios/web/public/web_state/page_scroll_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/navigation_item.h
diff --git a/ios/web/public/navigation_item.h b/ios/web/public/navigation_item.h
index a17a7e4479d27a42a86cebe35959aad730b8dc46..e067a82ee32b2feae65a2f0e469e4f6af5efb8c2 100644
--- a/ios/web/public/navigation_item.h
+++ b/ios/web/public/navigation_item.h
@@ -8,6 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
+#include "ios/web/public/web_state/page_scroll_state.h"
#include "ui/base/page_transition_types.h"
class GURL;
@@ -68,6 +69,10 @@ class NavigationItem {
virtual void SetPageID(int page_id) = 0;
virtual int32 GetPageID() const = 0;
+ // Stores the NavigationItem's last recorded scroll offset and zoom scale.
+ virtual void SetPageScrollState(const PageScrollState& scroll_state) = 0;
+ virtual const PageScrollState& GetPageScrollState() const = 0;
+
// Page-related helpers ------------------------------------------------------
// Returns the title to be displayed on the tab. This could be the title of
@@ -104,6 +109,11 @@ class NavigationItem {
// - or this navigation was copied from a foreign session.
virtual void SetTimestamp(base::Time timestamp) = 0;
virtual base::Time GetTimestamp() const = 0;
+
+ // |true| if this item contains unsafe resources and will be removed. This
+ // property doesn't get serialized.
+ virtual void SetUnsafe(bool is_unsafe) = 0;
+ virtual bool IsUnsafe() const = 0;
};
} // namespace web
« no previous file with comments | « ios/web/navigation/web_load_params.mm ('k') | ios/web/public/web_state/page_scroll_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698