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

Unified Diff: content/public/common/page_transition_types.cc

Issue 101573003: Add the navigation redirect-chain to Sync sessions proto for offline analysis. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from creis on patch set 43. Created 6 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698