Adding instrumentation to locate the source of jankiness
[chromium-blink-merge.git] / chrome / browser / sync / sessions / sessions_util.h
blob0a14a8379b1d5061f1759880894cdc8f48a31a6f
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.
5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SESSIONS_UTIL_H_
6 #define CHROME_BROWSER_SYNC_SESSIONS_SESSIONS_UTIL_H_
8 namespace browser_sync {
10 class SyncedTabDelegate;
11 class SyncedWindowDelegate;
13 namespace sessions_util {
15 // Control which local tabs we're interested in syncing.
16 // Ensures that the tab has valid entries.
17 bool ShouldSyncTab(const SyncedTabDelegate& tab);
19 // Decides whether |window| is interesting for tab syncing
20 // purposes.
21 bool ShouldSyncWindow(const SyncedWindowDelegate* window);
23 } // namespace sessions_util
25 } // namespace browser_sync
27 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSIONS_UTIL_H_