Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/sync/glue/synced_tab_delegate_android.cc

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synced_tab_delegate_android.h ('k') | chrome/browser/sync/glue/synced_tab_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698