OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ |
7 | 7 |
8 namespace sessions { | |
9 struct SessionTab; | |
10 } // namespace sessions | |
11 | |
8 class GURL; | 12 class GURL; |
9 | 13 |
10 // Returns whether sessions code should track a URL for restoring in the context | 14 // Returns whether sessions code should track a URL for restoring in the context |
11 // of //chrome. In particular, blacklists chrome://quit and chrome://restart to | 15 // of //chrome. In particular, blacklists chrome://quit and chrome://restart to |
12 // avoid quit or restart loops. | 16 // avoid quit or restart loops. |
13 bool ShouldTrackURLForRestore(const GURL& url); | 17 bool ShouldTrackURLForRestore(const GURL& url); |
14 | 18 |
19 // Returns the current navigation index from the tab. If current navigation's | |
20 // url is the sign out page and the url of previous one is the setting page, | |
21 // returns the index of previous one. | |
22 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.
| |
23 | |
15 #endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ | 24 #endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ |
OLD | NEW |