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

Side by Side Diff: chrome/browser/sync/glue/synced_session_util.h

Issue 1408643002: [Sync] Componentize synced_tab_delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test broken by rebase Created 5 years, 1 month 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698