Index: chrome/browser/sessions/session_common_utils.h |
diff --git a/chrome/browser/sessions/session_common_utils.h b/chrome/browser/sessions/session_common_utils.h |
index e5eea2385830316023d1e62681453369d3fe66bd..d2957926c2bc6c8afaed4f0dc6a16b03de5134ed 100644 |
--- a/chrome/browser/sessions/session_common_utils.h |
+++ b/chrome/browser/sessions/session_common_utils.h |
@@ -5,6 +5,10 @@ |
#ifndef CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ |
#define CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ |
+namespace sessions { |
+struct SessionTab; |
+} // namespace sessions |
+ |
class GURL; |
// Returns whether sessions code should track a URL for restoring in the context |
@@ -12,4 +16,9 @@ class GURL; |
// avoid quit or restart loops. |
bool ShouldTrackURLForRestore(const GURL& url); |
+// Returns the current navigation index from the tab. If current navigation's |
+// url is the sign out page and the url of previous one is the setting page, |
+// returns the index of previous one. |
+int GetSelectedIndexFromTab(const sessions::SessionTab& tab); |
sky
2016/11/11 00:32:17
Selected-index is rather generic in this case. How
zmin
2016/11/11 22:54:01
Done.
|
+ |
#endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ |