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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
616 // or the dedicated set title message. It returns true if the new title is | 616 // or the dedicated set title message. It returns true if the new title is |
617 // different and was therefore updated. | 617 // different and was therefore updated. |
618 bool UpdateTitleForEntry(NavigationEntry* entry, const string16& title); | 618 bool UpdateTitleForEntry(NavigationEntry* entry, const string16& title); |
619 | 619 |
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 | |
Charlie Reis
2011/08/09 20:59:31
Sounds odd to me to "set the history for a TabCont
Charlie Reis
2011/08/09 23:25:16
Can you squeeze in this fix as well?
| |
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 | |
629 // tab. | |
630 void SetHistoryLengthAndClear(int history_length); | |
631 | |
632 | |
626 // Misc non-view stuff ------------------------------------------------------- | 633 // Misc non-view stuff ------------------------------------------------------- |
627 | 634 |
628 // Helper functions for sending notifications. | 635 // Helper functions for sending notifications. |
629 void NotifySwapped(); | 636 void NotifySwapped(); |
630 void NotifyConnected(); | 637 void NotifyConnected(); |
631 void NotifyDisconnected(); | 638 void NotifyDisconnected(); |
632 | 639 |
633 // RenderViewHostDelegate ---------------------------------------------------- | 640 // RenderViewHostDelegate ---------------------------------------------------- |
634 | 641 |
635 // RenderViewHostDelegate implementation. | 642 // RenderViewHostDelegate implementation. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
858 ObserverList<TabContentsObserver> observers_; | 865 ObserverList<TabContentsObserver> observers_; |
859 | 866 |
860 // Content restrictions, used to disable print/copy etc based on content's | 867 // Content restrictions, used to disable print/copy etc based on content's |
861 // (full-page plugins for now only) permissions. | 868 // (full-page plugins for now only) permissions. |
862 int content_restrictions_; | 869 int content_restrictions_; |
863 | 870 |
864 DISALLOW_COPY_AND_ASSIGN(TabContents); | 871 DISALLOW_COPY_AND_ASSIGN(TabContents); |
865 }; | 872 }; |
866 | 873 |
867 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 874 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |