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..704a284ac14c34aa3e270919eb236a11a28898f5 100644 |
--- a/content/public/common/page_transition_types.cc |
+++ b/content/public/common/page_transition_types.cc |
@@ -47,6 +47,15 @@ bool PageTransitionIsRedirect(PageTransition type) { |
return (type & PAGE_TRANSITION_IS_REDIRECT_MASK) != 0; |
} |
+bool PageTransitionIsForwardBack(PageTransition type) { |
+ return (type & PAGE_TRANSITION_FORWARD_BACK) != 0; |
Charlie Reis
2014/04/05 00:09:10
We generally don't expose new public functions unt
Donn Denman
2014/04/09 21:09:21
Done.
|
+} |
+ |
+bool PageTransitionIsNewNavigation(PageTransition type) { |
+ return !(PageTransitionIsForwardBack(type) || |
+ PageTransitionCoreTypeIs(type, content::PAGE_TRANSITION_RELOAD)); |
+} |
+ |
int32 PageTransitionGetQualifier(PageTransition type) { |
return type & PAGE_TRANSITION_QUALIFIER_MASK; |
} |