| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" | 5 #include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" |
| 6 | 6 |
| 7 #include "content/browser/tab_contents/navigation_controller.h" | |
| 8 #include "content/browser/tab_contents/tab_contents.h" | 7 #include "content/browser/tab_contents/tab_contents.h" |
| 9 #include "chrome/browser/extensions/extension_tab_helper.h" | 8 #include "chrome/browser/extensions/extension_tab_helper.h" |
| 10 #include "chrome/browser/sessions/restore_tab_helper.h" | 9 #include "chrome/browser/sessions/restore_tab_helper.h" |
| 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 12 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
| 12 #include "content/public/browser/navigation_controller.h" |
| 13 #include "content/public/browser/navigation_entry.h" | 13 #include "content/public/browser/navigation_entry.h" |
| 14 | 14 |
| 15 using content::NavigationEntry; | 15 using content::NavigationEntry; |
| 16 | 16 |
| 17 TabContentsWrapperSyncedTabDelegate::TabContentsWrapperSyncedTabDelegate( | 17 TabContentsWrapperSyncedTabDelegate::TabContentsWrapperSyncedTabDelegate( |
| 18 TabContentsWrapper* tab_contents_wrapper) | 18 TabContentsWrapper* tab_contents_wrapper) |
| 19 : tab_contents_wrapper_(tab_contents_wrapper) {} | 19 : tab_contents_wrapper_(tab_contents_wrapper) {} |
| 20 | 20 |
| 21 TabContentsWrapperSyncedTabDelegate::~TabContentsWrapperSyncedTabDelegate() {} | 21 TabContentsWrapperSyncedTabDelegate::~TabContentsWrapperSyncedTabDelegate() {} |
| 22 | 22 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetEntryAtIndex(int i) | 69 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetEntryAtIndex(int i) |
| 70 const { | 70 const { |
| 71 return | 71 return |
| 72 tab_contents_wrapper_->tab_contents()->GetController().GetEntryAtIndex(i); | 72 tab_contents_wrapper_->tab_contents()->GetController().GetEntryAtIndex(i); |
| 73 } | 73 } |
| 74 | 74 |
| 75 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetActiveEntry() const { | 75 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetActiveEntry() const { |
| 76 return | 76 return |
| 77 tab_contents_wrapper_->tab_contents()->GetController().GetActiveEntry(); | 77 tab_contents_wrapper_->tab_contents()->GetController().GetActiveEntry(); |
| 78 } | 78 } |
| OLD | NEW |