| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_UTIL_H_ | |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_UTIL_H_ | |
| 7 | |
| 8 class GURL; | |
| 9 | |
| 10 namespace sessions { | |
| 11 struct SessionTab; | |
| 12 struct SessionWindow; | |
| 13 } | |
| 14 | |
| 15 namespace browser_sync { | |
| 16 | |
| 17 // Checks if the given url is considered interesting enough to sync. Most urls | |
| 18 // are considered interesting, examples of ones that are not are invalid urls, | |
| 19 // files, and chrome internal pages. | |
| 20 bool ShouldSyncURL(const GURL& url); | |
| 21 | |
| 22 // Returns if the tab has any navigation entries worth syncing or not. | |
| 23 bool ShouldSyncSessionTab(const sessions::SessionTab& tab); | |
| 24 | |
| 25 // Returns if the window has any tabs worth syncing or not. | |
| 26 bool ShouldSyncSessionWindow(const sessions::SessionWindow& window); | |
| 27 | |
| 28 } // namespace browser_sync | |
| 29 | |
| 30 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_UTIL_H_ | |
| OLD | NEW |