OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/sessions/session_id.h" | |
13 #include "chrome/browser/sessions/session_types.h" | 12 #include "chrome/browser/sessions/session_types.h" |
| 13 #include "components/sessions/session_id.h" |
14 #include "sync/protocol/session_specifics.pb.h" | 14 #include "sync/protocol/session_specifics.pb.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class NavigationEntry; | 17 class NavigationEntry; |
18 } | 18 } |
19 | 19 |
20 namespace browser_sync { | 20 namespace browser_sync { |
21 | 21 |
22 // Defines a synced session for use by session sync. A synced session is a | 22 // Defines a synced session for use by session sync. A synced session is a |
23 // list of windows along with a unique session identifer (tag) and meta-data | 23 // list of windows along with a unique session identifer (tag) and meta-data |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Note: chrome:// and file:// are not considered valid urls (for syncing). | 93 // Note: chrome:// and file:// are not considered valid urls (for syncing). |
94 bool ShouldSyncSessionTab(const SessionTab& tab); | 94 bool ShouldSyncSessionTab(const SessionTab& tab); |
95 | 95 |
96 // Checks whether the window has tabs to sync. If no tabs to sync, it returns | 96 // Checks whether the window has tabs to sync. If no tabs to sync, it returns |
97 // true, false otherwise. | 97 // true, false otherwise. |
98 bool SessionWindowHasNoTabsToSync(const SessionWindow& window); | 98 bool SessionWindowHasNoTabsToSync(const SessionWindow& window); |
99 | 99 |
100 } // namespace browser_sync | 100 } // namespace browser_sync |
101 | 101 |
102 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ | 102 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
OLD | NEW |