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

Side by Side Diff: chrome/browser/sessions/session_common_utils.h

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: Rebase, fix Android? Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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 { 8 namespace sessions {
9 class SerializedNavigationEntry;
9 struct SessionTab; 10 struct SessionTab;
10 } // namespace sessions 11 } // namespace sessions
11 12
12 class GURL; 13 class GURL;
13 14
14 // Returns whether sessions code should track a URL for restoring in the context 15 // Returns whether sessions code should track a URL for restoring in the context
15 // of //chrome. In particular, blacklists chrome://quit and chrome://restart to 16 // of //chrome. In particular, blacklists chrome://quit and chrome://restart to
16 // avoid quit or restart loops. 17 // avoid quit or restart loops.
17 bool ShouldTrackURLForRestore(const GURL& url); 18 bool ShouldTrackURLForRestore(const GURL& url);
18 19
19 // Returns the current navigation index from the tab. If current navigation's 20 // 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 // url is the sign out page and the url of previous one is the setting page,
21 // returns the index of previous one. 22 // returns the index of previous one.
22 int GetNavigationIndexToSelect(const sessions::SessionTab& tab); 23 int GetNavigationIndexToSelect(const sessions::SessionTab& tab);
23 24
25 // Chrome-specific callback function for use with
26 // sessions::SerializedNavigationDriver::SetSanitizeCallback().
27 void SanitizeNavigation(sessions::SerializedNavigationEntry* navigation);
28
24 #endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_ 29 #endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698