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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SESSIONS_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_SESSIONS_SESSIONS_UTIL_H_ 7 8 namespace browser_sync { 9 10 class SyncedTabDelegate; 11 class SyncedWindowDelegate; 12 13 namespace sessions_util { 14 15 // Control which local tabs we're interested in syncing. 16 // Ensures that the tab has valid entries. 17 bool ShouldSyncTab(const SyncedTabDelegate& tab); 18 19 // Decides whether |window| is interesting for tab syncing 20 // purposes. 21 bool ShouldSyncWindow(const SyncedWindowDelegate* window); 22 23 } // namespace sessions_util 24 25 } // namespace browser_sync 26 27 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSIONS_UTIL_H_ 28