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

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 Brett's comment on patch set 46, and rebase. Created 6 years, 8 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 | « content/public/common/page_transition_types.h ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « content/public/common/page_transition_types.h ('k') | content/test/test_render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698