| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 SessionID::id_type SyncedTabDelegateAndroid::GetSessionId() const { | 31 SessionID::id_type SyncedTabDelegateAndroid::GetSessionId() const { |
| 32 return tab_android_->session_id().id(); | 32 return tab_android_->session_id().id(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool SyncedTabDelegateAndroid::IsBeingDestroyed() const { | 35 bool SyncedTabDelegateAndroid::IsBeingDestroyed() const { |
| 36 return tab_contents_delegate_->IsBeingDestroyed(); | 36 return tab_contents_delegate_->IsBeingDestroyed(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 SessionID::id_type SyncedTabDelegateAndroid::GetSourceTabID() const { |
| 40 return tab_contents_delegate_->GetSourceTabID(); |
| 41 } |
| 42 |
| 39 std::string SyncedTabDelegateAndroid::GetExtensionAppId() const { | 43 std::string SyncedTabDelegateAndroid::GetExtensionAppId() const { |
| 40 return tab_contents_delegate_->GetExtensionAppId(); | 44 return tab_contents_delegate_->GetExtensionAppId(); |
| 41 } | 45 } |
| 42 | 46 |
| 43 bool SyncedTabDelegateAndroid::IsInitialBlankNavigation() const { | 47 bool SyncedTabDelegateAndroid::IsInitialBlankNavigation() const { |
| 44 return tab_contents_delegate_->IsInitialBlankNavigation(); | 48 return tab_contents_delegate_->IsInitialBlankNavigation(); |
| 45 } | 49 } |
| 46 | 50 |
| 47 int SyncedTabDelegateAndroid::GetCurrentEntryIndex() const { | 51 int SyncedTabDelegateAndroid::GetCurrentEntryIndex() const { |
| 48 return tab_contents_delegate_->GetCurrentEntryIndex(); | 52 return tab_contents_delegate_->GetCurrentEntryIndex(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void SyncedTabDelegateAndroid::SetSyncId(int sync_id) { | 107 void SyncedTabDelegateAndroid::SetSyncId(int sync_id) { |
| 104 tab_android_->SetSyncId(sync_id); | 108 tab_android_->SetSyncId(sync_id); |
| 105 } | 109 } |
| 106 | 110 |
| 107 bool SyncedTabDelegateAndroid::ShouldSync( | 111 bool SyncedTabDelegateAndroid::ShouldSync( |
| 108 sync_sessions::SyncSessionsClient* sessions_client) { | 112 sync_sessions::SyncSessionsClient* sessions_client) { |
| 109 return tab_contents_delegate_->ShouldSync(sessions_client); | 113 return tab_contents_delegate_->ShouldSync(sessions_client); |
| 110 } | 114 } |
| 111 | 115 |
| 112 } // namespace browser_sync | 116 } // namespace browser_sync |
| OLD | NEW |