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 // virtual for testing. |
Charlie Reis
2011/08/13 00:29:04
Nit: capitalize virtual here.
cbentzel
2011/08/13 02:19:12
Done.
| |
631 | 631 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, |
632 int merge_history_length, | |
633 int32 minimum_page_id); | |
632 | 634 |
633 // Misc non-view stuff ------------------------------------------------------- | 635 // Misc non-view stuff ------------------------------------------------------- |
634 | 636 |
635 // Helper functions for sending notifications. | 637 // Helper functions for sending notifications. |
636 void NotifySwapped(); | 638 void NotifySwapped(); |
637 void NotifyConnected(); | 639 void NotifyConnected(); |
638 void NotifyDisconnected(); | 640 void NotifyDisconnected(); |
639 | 641 |
640 // RenderViewHostDelegate ---------------------------------------------------- | 642 // RenderViewHostDelegate ---------------------------------------------------- |
641 | 643 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 ObserverList<TabContentsObserver> observers_; | 867 ObserverList<TabContentsObserver> observers_; |
866 | 868 |
867 // Content restrictions, used to disable print/copy etc based on content's | 869 // Content restrictions, used to disable print/copy etc based on content's |
868 // (full-page plugins for now only) permissions. | 870 // (full-page plugins for now only) permissions. |
869 int content_restrictions_; | 871 int content_restrictions_; |
870 | 872 |
871 DISALLOW_COPY_AND_ASSIGN(TabContents); | 873 DISALLOW_COPY_AND_ASSIGN(TabContents); |
872 }; | 874 }; |
873 | 875 |
874 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 876 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |