| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/sync/glue/synced_tab_delegate_android.h" | 5 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "chrome/browser/android/tab_android.h" | 8 #include "chrome/browser/android/tab_android.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/sync/glue/synced_window_delegates_getter_android.h" | 10 #include "chrome/browser/sync/glue/synced_window_delegates_getter_android.h" |
| 11 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 11 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
| 12 #include "components/sync_driver/glue/synced_window_delegate.h" | 12 #include "components/sync_sessions/synced_window_delegate.h" |
| 13 #include "content/public/browser/navigation_entry.h" | 13 #include "content/public/browser/navigation_entry.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 | 15 |
| 16 using content::NavigationEntry; | 16 using content::NavigationEntry; |
| 17 | 17 |
| 18 namespace browser_sync { | 18 namespace browser_sync { |
| 19 SyncedTabDelegateAndroid::SyncedTabDelegateAndroid(TabAndroid* tab_android) | 19 SyncedTabDelegateAndroid::SyncedTabDelegateAndroid(TabAndroid* tab_android) |
| 20 : web_contents_(nullptr), | 20 : web_contents_(nullptr), |
| 21 tab_android_(tab_android), | 21 tab_android_(tab_android), |
| 22 tab_contents_delegate_(nullptr) { | 22 tab_contents_delegate_(nullptr) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void SyncedTabDelegateAndroid::SetSyncId(int sync_id) { | 103 void SyncedTabDelegateAndroid::SetSyncId(int sync_id) { |
| 104 tab_android_->SetSyncId(sync_id); | 104 tab_android_->SetSyncId(sync_id); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool SyncedTabDelegateAndroid::ShouldSync( | 107 bool SyncedTabDelegateAndroid::ShouldSync( |
| 108 sync_sessions::SyncSessionsClient* sessions_client) { | 108 sync_sessions::SyncSessionsClient* sessions_client) { |
| 109 return tab_contents_delegate_->ShouldSync(sessions_client); | 109 return tab_contents_delegate_->ShouldSync(sessions_client); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace browser_sync | 112 } // namespace browser_sync |
| OLD | NEW |