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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 358973005: Navigation transitions: Pass is_transition_navigation flag up to the embedder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index b021d5eda18cea37a92d27924094752c5b77a5b7..fe7fe60da0c3197b898f9b9b1ce94325d392cc0a 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -53,7 +53,8 @@ NavigationEntryImpl::NavigationEntryImpl()
should_replace_entry_(false),
should_clear_history_list_(false),
can_load_local_resources_(false),
- frame_tree_node_id_(-1) {
+ frame_tree_node_id_(-1),
+ is_transition_navigation_(false) {
}
NavigationEntryImpl::NavigationEntryImpl(SiteInstanceImpl* instance,
@@ -82,7 +83,8 @@ NavigationEntryImpl::NavigationEntryImpl(SiteInstanceImpl* instance,
should_replace_entry_(false),
should_clear_history_list_(false),
can_load_local_resources_(false),
- frame_tree_node_id_(-1) {
+ frame_tree_node_id_(-1),
+ is_transition_navigation_(false) {
}
NavigationEntryImpl::~NavigationEntryImpl() {
@@ -302,6 +304,15 @@ bool NavigationEntryImpl::IsRestored() const {
return restore_type_ != RESTORE_NONE;
}
+void NavigationEntryImpl::SetIsTransitionNavigation(
+ bool is_transition_navigation) {
+ is_transition_navigation_ = is_transition_navigation;
+}
+
+bool NavigationEntryImpl::IsTransitionNavigation() {
+ return is_transition_navigation_;
+}
+
void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) {
can_load_local_resources_ = allow;
}

Powered by Google App Engine
This is Rietveld 408576698