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 8namespace browser_sync { 9 10class SyncedTabDelegate; 11class SyncedWindowDelegate; 12 13namespace sessions_util { 14 15// Control which local tabs we're interested in syncing. 16// Ensures that the tab has valid entries. 17bool ShouldSyncTab(const SyncedTabDelegate& tab); 18 19// Decides whether |window| is interesting for tab syncing 20// purposes. 21bool 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