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

Unified Diff: content/public/browser/navigation_entry.h

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: Fix android unit test (state_serializer_unittests.cc). Created 6 years, 11 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/browser/navigation_entry.h
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index e23773f1a2c26fd8fdad8fa8af45c63057a45aa9..09939010b7d449c3e1f99331d2722f17964aad86 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -209,6 +209,11 @@ class NavigationEntry {
// status code wasn't available.
virtual void SetHttpStatusCode(int http_status_code) = 0;
virtual int GetHttpStatusCode() const = 0;
+
+ // The redirect chain traversed during this navigation, from the initial
+ // redirecting URL to the final non-redirecting current URL.
+ virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0;
+ virtual const std::vector<GURL>& GetRedirectChain() const = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698