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 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 Profile* SyncedTabDelegateAndroid::profile() const { | 41 Profile* SyncedTabDelegateAndroid::profile() const { |
42 return tab_contents_delegate_->profile(); | 42 return tab_contents_delegate_->profile(); |
43 } | 43 } |
44 | 44 |
45 std::string SyncedTabDelegateAndroid::GetExtensionAppId() const { | 45 std::string SyncedTabDelegateAndroid::GetExtensionAppId() const { |
46 return tab_contents_delegate_->GetExtensionAppId(); | 46 return tab_contents_delegate_->GetExtensionAppId(); |
47 } | 47 } |
48 | 48 |
| 49 bool SyncedTabDelegateAndroid::IsInitialBlankNavigation() const { |
| 50 return tab_contents_delegate_->IsInitialBlankNavigation(); |
| 51 } |
| 52 |
49 int SyncedTabDelegateAndroid::GetCurrentEntryIndex() const { | 53 int SyncedTabDelegateAndroid::GetCurrentEntryIndex() const { |
50 return tab_contents_delegate_->GetCurrentEntryIndex(); | 54 return tab_contents_delegate_->GetCurrentEntryIndex(); |
51 } | 55 } |
52 | 56 |
53 int SyncedTabDelegateAndroid::GetEntryCount() const { | 57 int SyncedTabDelegateAndroid::GetEntryCount() const { |
54 return tab_contents_delegate_->GetEntryCount(); | 58 return tab_contents_delegate_->GetEntryCount(); |
55 } | 59 } |
56 | 60 |
57 int SyncedTabDelegateAndroid::GetPendingEntryIndex() const { | 61 int SyncedTabDelegateAndroid::GetPendingEntryIndex() const { |
58 return tab_contents_delegate_->GetPendingEntryIndex(); | 62 return tab_contents_delegate_->GetPendingEntryIndex(); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 118 } |
115 | 119 |
116 // static | 120 // static |
117 SyncedTabDelegate* SyncedTabDelegate::ImplFromWebContents( | 121 SyncedTabDelegate* SyncedTabDelegate::ImplFromWebContents( |
118 content::WebContents* web_contents) { | 122 content::WebContents* web_contents) { |
119 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); | 123 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); |
120 return tab ? tab->GetSyncedTabDelegate() : nullptr; | 124 return tab ? tab->GetSyncedTabDelegate() : nullptr; |
121 } | 125 } |
122 | 126 |
123 } // namespace browser_sync | 127 } // namespace browser_sync |
OLD | NEW |