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_SERVICE_UTILS_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_ |
7 | 7 |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "components/sessions/session_types.h" | 9 #include "components/sessions/session_types.h" |
10 | 10 |
11 // The maximum number of navigation entries in each direction we'll persist for | |
12 // chrome/Browser. | |
13 extern const int gMaxPersistNavigationCount; | |
14 | |
15 // Convert back/forward between the Browser and SessionService window types. | 11 // Convert back/forward between the Browser and SessionService window types. |
16 sessions::SessionWindow::WindowType WindowTypeForBrowserType( | 12 sessions::SessionWindow::WindowType WindowTypeForBrowserType( |
17 Browser::Type type); | 13 Browser::Type type); |
18 Browser::Type BrowserTypeForWindowType( | 14 Browser::Type BrowserTypeForWindowType( |
19 sessions::SessionWindow::WindowType type); | 15 sessions::SessionWindow::WindowType type); |
20 | 16 |
21 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_ | 17 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_UTILS_H_ |
OLD | NEW |