OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.h" | 5 #include "ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "components/sessions/ios/ios_serialized_navigation_builder.h" | 8 #include "components/sessions/ios/ios_serialized_navigation_builder.h" |
9 #include "components/sync_driver/glue/synced_window_delegate.h" | |
10 #include "components/sync_driver/sessions/synced_window_delegates_getter.h" | |
11 #include "components/sync_sessions/sync_sessions_client.h" | 9 #include "components/sync_sessions/sync_sessions_client.h" |
| 10 #include "components/sync_sessions/synced_window_delegate.h" |
| 11 #include "components/sync_sessions/synced_window_delegates_getter.h" |
12 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" | 12 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" |
13 #include "ios/web/public/favicon_status.h" | 13 #include "ios/web/public/favicon_status.h" |
14 #include "ios/web/public/navigation_item.h" | 14 #include "ios/web/public/navigation_item.h" |
15 #include "ios/web/public/navigation_manager.h" | 15 #include "ios/web/public/navigation_manager.h" |
16 #include "ios/web/public/web_state/web_state.h" | 16 #include "ios/web/public/web_state/web_state.h" |
17 | 17 |
18 using web::NavigationItem; | 18 using web::NavigationItem; |
19 | 19 |
20 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSyncedTabDelegate); | 20 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSyncedTabDelegate); |
21 | 21 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 for (int i = 0; i < entry_count; ++i) { | 123 for (int i = 0; i < entry_count; ++i) { |
124 const GURL& virtual_url = GetVirtualURLAtIndex(i); | 124 const GURL& virtual_url = GetVirtualURLAtIndex(i); |
125 if (!virtual_url.is_valid()) | 125 if (!virtual_url.is_valid()) |
126 continue; | 126 continue; |
127 | 127 |
128 if (sessions_client->ShouldSyncURL(virtual_url)) | 128 if (sessions_client->ShouldSyncURL(virtual_url)) |
129 return true; | 129 return true; |
130 } | 130 } |
131 return false; | 131 return false; |
132 } | 132 } |
OLD | NEW |