Index: content/public/common/page_transition_types.cc |
diff --git a/content/public/common/page_transition_types.cc b/content/public/common/page_transition_types.cc |
index 52a0561765d35139c60d0386705622e08c1b7150..bf95ea045c004dd89234fe3c91f983e8b43e5cca 100644 |
--- a/content/public/common/page_transition_types.cc |
+++ b/content/public/common/page_transition_types.cc |
@@ -47,6 +47,11 @@ bool PageTransitionIsRedirect(PageTransition type) { |
return (type & PAGE_TRANSITION_IS_REDIRECT_MASK) != 0; |
} |
+bool PageTransitionIsNewNavigation(PageTransition type) { |
+ return (type & PAGE_TRANSITION_FORWARD_BACK) == 0 && |
+ !PageTransitionCoreTypeIs(type, content::PAGE_TRANSITION_RELOAD); |
+} |
+ |
int32 PageTransitionGetQualifier(PageTransition type) { |
return type & PAGE_TRANSITION_QUALIFIER_MASK; |
} |