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 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/time.h" | 11 #include "base/time.h" |
13 #include "chrome/browser/sessions/session_id.h" | 12 #include "chrome/browser/sessions/session_id.h" |
14 #include "chrome/browser/sessions/session_types.h" | 13 #include "chrome/browser/sessions/session_types.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 class NavigationEntry; | 16 class NavigationEntry; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Note: chrome:// and file:// are not considered valid urls (for syncing). | 102 // Note: chrome:// and file:// are not considered valid urls (for syncing). |
104 bool ShouldSyncSessionTab(const SessionTab& tab); | 103 bool ShouldSyncSessionTab(const SessionTab& tab); |
105 | 104 |
106 // Checks whether the window has tabs to sync. If no tabs to sync, it returns | 105 // Checks whether the window has tabs to sync. If no tabs to sync, it returns |
107 // true, false otherwise. | 106 // true, false otherwise. |
108 bool SessionWindowHasNoTabsToSync(const SessionWindow& window); | 107 bool SessionWindowHasNoTabsToSync(const SessionWindow& window); |
109 | 108 |
110 } // namespace browser_sync | 109 } // namespace browser_sync |
111 | 110 |
112 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ | 111 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
OLD | NEW |