| 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/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" | 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" |
| 6 | 6 |
| 7 #include "content/browser/tab_contents/navigation_controller.h" | 7 #include "content/browser/tab_contents/navigation_controller.h" |
| 8 #include "content/browser/tab_contents/tab_contents.h" | 8 #include "content/browser/tab_contents/tab_contents.h" |
| 9 #include "chrome/browser/extensions/extension_tab_helper.h" | 9 #include "chrome/browser/extensions/extension_tab_helper.h" |
| 10 #include "chrome/browser/sessions/restore_tab_helper.h" | 10 #include "chrome/browser/sessions/restore_tab_helper.h" |
| 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 12 #include "chrome/common/extensions/extension.h" |
| 12 | 13 |
| 13 | 14 |
| 14 TabContentsWrapperSyncedTabDelegate::TabContentsWrapperSyncedTabDelegate( | 15 TabContentsWrapperSyncedTabDelegate::TabContentsWrapperSyncedTabDelegate( |
| 15 TabContentsWrapper* tab_contents_wrapper) | 16 TabContentsWrapper* tab_contents_wrapper) |
| 16 : tab_contents_wrapper_(tab_contents_wrapper) {} | 17 : tab_contents_wrapper_(tab_contents_wrapper) {} |
| 17 | 18 |
| 18 TabContentsWrapperSyncedTabDelegate::~TabContentsWrapperSyncedTabDelegate() {} | 19 TabContentsWrapperSyncedTabDelegate::~TabContentsWrapperSyncedTabDelegate() {} |
| 19 | 20 |
| 20 SessionID::id_type TabContentsWrapperSyncedTabDelegate::GetWindowId() const { | 21 SessionID::id_type TabContentsWrapperSyncedTabDelegate::GetWindowId() const { |
| 21 return tab_contents_wrapper_->restore_tab_helper()->window_id().id(); | 22 return tab_contents_wrapper_->restore_tab_helper()->window_id().id(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 62 } |
| 62 | 63 |
| 63 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetEntryAtIndex(int i) | 64 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetEntryAtIndex(int i) |
| 64 const { | 65 const { |
| 65 return tab_contents_wrapper_->controller().GetEntryAtIndex(i); | 66 return tab_contents_wrapper_->controller().GetEntryAtIndex(i); |
| 66 } | 67 } |
| 67 | 68 |
| 68 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetActiveEntry() const { | 69 NavigationEntry* TabContentsWrapperSyncedTabDelegate::GetActiveEntry() const { |
| 69 return tab_contents_wrapper_->controller().GetActiveEntry(); | 70 return tab_contents_wrapper_->controller().GetActiveEntry(); |
| 70 } | 71 } |
| OLD | NEW |