| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, PopulateSessionWindow); | 153 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, PopulateSessionWindow); |
| 154 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, ValidTabs); | 154 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, ValidTabs); |
| 155 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, SetSessionTabFromDelegate); | 155 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, SetSessionTabFromDelegate); |
| 156 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 156 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 157 SetSessionTabFromDelegateNavigationIndex); | 157 SetSessionTabFromDelegateNavigationIndex); |
| 158 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 158 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 159 SetSessionTabFromDelegateCurrentInvalid); | 159 SetSessionTabFromDelegateCurrentInvalid); |
| 160 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, BlockedNavigations); | 160 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, BlockedNavigations); |
| 161 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, DeleteForeignSession); | 161 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, DeleteForeignSession); |
| 162 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 162 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 163 ProcessForeignDeleteTabsWithShadowing); |
| 164 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 163 SaveUnassociatedNodesForReassociation); | 165 SaveUnassociatedNodesForReassociation); |
| 164 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, MergeDeletesCorruptNode); | 166 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, MergeDeletesCorruptNode); |
| 165 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 167 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 166 MergeLocalSessionExistingTabs); | 168 MergeLocalSessionExistingTabs); |
| 167 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 169 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 168 CheckPrerenderedWebContentsSwap); | 170 CheckPrerenderedWebContentsSwap); |
| 169 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 171 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| 170 AssociateWindowsDontReloadTabs); | 172 AssociateWindowsDontReloadTabs); |
| 171 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, SwappedOutOnRestore); | 173 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, SwappedOutOnRestore); |
| 172 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, | 174 FRIEND_TEST_ALL_PREFIXES(SessionsSyncManagerTest, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 337 |
| 336 // User-visible machine name. | 338 // User-visible machine name. |
| 337 std::string current_session_name_; | 339 std::string current_session_name_; |
| 338 | 340 |
| 339 // SyncID for the sync node containing all the window information for this | 341 // SyncID for the sync node containing all the window information for this |
| 340 // client. | 342 // client. |
| 341 int local_session_header_node_id_; | 343 int local_session_header_node_id_; |
| 342 | 344 |
| 343 // Number of days without activity after which we consider a session to be | 345 // Number of days without activity after which we consider a session to be |
| 344 // stale and a candidate for garbage collection. | 346 // stale and a candidate for garbage collection. |
| 345 size_t stale_session_threshold_days_; | 347 int stale_session_threshold_days_; |
| 346 | 348 |
| 347 scoped_ptr<LocalSessionEventRouter> local_event_router_; | 349 scoped_ptr<LocalSessionEventRouter> local_event_router_; |
| 348 | 350 |
| 349 // Owns revisiting instrumentation logic for page visit events. | 351 // Owns revisiting instrumentation logic for page visit events. |
| 350 PageRevisitBroadcaster page_revisit_broadcaster_; | 352 PageRevisitBroadcaster page_revisit_broadcaster_; |
| 351 | 353 |
| 352 // Callback to inform interested observer that new sessions data has arrived. | 354 // Callback to inform interested observer that new sessions data has arrived. |
| 353 base::Closure sessions_updated_callback_; | 355 base::Closure sessions_updated_callback_; |
| 354 | 356 |
| 355 // Callback to inform sync that a sync data refresh is requested. | 357 // Callback to inform sync that a sync data refresh is requested. |
| 356 base::Closure datatype_refresh_callback_; | 358 base::Closure datatype_refresh_callback_; |
| 357 | 359 |
| 358 DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager); | 360 DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager); |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 } // namespace browser_sync | 363 } // namespace browser_sync |
| 362 | 364 |
| 363 #endif // COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ | 365 #endif // COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ |
| OLD | NEW |