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 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 // Causes the TabContents to navigate in the right renderer to |entry|, which | 620 // Causes the TabContents to navigate in the right renderer to |entry|, which |
621 // must be already part of the entries in the navigation controller. | 621 // must be already part of the entries in the navigation controller. |
622 // This does not change the NavigationController state. | 622 // This does not change the NavigationController state. |
623 bool NavigateToEntry(const NavigationEntry& entry, | 623 bool NavigateToEntry(const NavigationEntry& entry, |
624 NavigationController::ReloadType reload_type); | 624 NavigationController::ReloadType reload_type); |
625 | 625 |
626 // Sets the history for this tab_contents to |history_length| entries, and | 626 // Sets the history for this tab_contents to |history_length| entries, and |
627 // moves the current page_id to the last entry in the list if it's valid. | 627 // moves the current page_id to the last entry in the list if it's valid. |
628 // This is mainly used when a prerendered page is swapped into the current | 628 // This is mainly used when a prerendered page is swapped into the current |
629 // tab. | 629 // tab. |
630 void SetHistoryLengthAndClear(int history_length); | 630 void SetHistoryLengthAndClear(const SiteInstance* site_instance, |
631 | 631 int history_length, |
| 632 int32 page_id); |
632 | 633 |
633 // Misc non-view stuff ------------------------------------------------------- | 634 // Misc non-view stuff ------------------------------------------------------- |
634 | 635 |
635 // Helper functions for sending notifications. | 636 // Helper functions for sending notifications. |
636 void NotifySwapped(); | 637 void NotifySwapped(); |
637 void NotifyConnected(); | 638 void NotifyConnected(); |
638 void NotifyDisconnected(); | 639 void NotifyDisconnected(); |
639 | 640 |
640 // RenderViewHostDelegate ---------------------------------------------------- | 641 // RenderViewHostDelegate ---------------------------------------------------- |
641 | 642 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 ObserverList<TabContentsObserver> observers_; | 866 ObserverList<TabContentsObserver> observers_; |
866 | 867 |
867 // Content restrictions, used to disable print/copy etc based on content's | 868 // Content restrictions, used to disable print/copy etc based on content's |
868 // (full-page plugins for now only) permissions. | 869 // (full-page plugins for now only) permissions. |
869 int content_restrictions_; | 870 int content_restrictions_; |
870 | 871 |
871 DISALLOW_COPY_AND_ASSIGN(TabContents); | 872 DISALLOW_COPY_AND_ASSIGN(TabContents); |
872 }; | 873 }; |
873 | 874 |
874 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 875 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |