| 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 // entry already be set). | 585 // entry already be set). |
| 586 // | 586 // |
| 587 // This is used as the backend for state updates, which include a new title, | 587 // This is used as the backend for state updates, which include a new title, |
| 588 // or the dedicated set title message. It returns true if the new title is | 588 // or the dedicated set title message. It returns true if the new title is |
| 589 // different and was therefore updated. | 589 // different and was therefore updated. |
| 590 bool UpdateTitleForEntry(NavigationEntry* entry, const string16& title); | 590 bool UpdateTitleForEntry(NavigationEntry* entry, const string16& title); |
| 591 | 591 |
| 592 // Causes the TabContents to navigate in the right renderer to |entry|, which | 592 // Causes the TabContents to navigate in the right renderer to |entry|, which |
| 593 // must be already part of the entries in the navigation controller. | 593 // must be already part of the entries in the navigation controller. |
| 594 // This does not change the NavigationController state. | 594 // This does not change the NavigationController state. |
| 595 bool NavigateToEntry(NavigationEntry* entry, | 595 bool NavigateToEntry(const NavigationEntry& entry, |
| 596 NavigationController::ReloadType reload_type); | 596 NavigationController::ReloadType reload_type); |
| 597 | 597 |
| 598 // Sets the history for this tab_contents to |history_length| entries, and | 598 // Sets the history for this tab_contents to |history_length| entries, and |
| 599 // moves the current page_id to the last entry in the list if it's valid. | 599 // moves the current page_id to the last entry in the list if it's valid. |
| 600 // This is mainly used when a prerendered page is swapped into the current | 600 // This is mainly used when a prerendered page is swapped into the current |
| 601 // tab. The method is virtual for testing. | 601 // tab. The method is virtual for testing. |
| 602 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, | 602 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, |
| 603 int merge_history_length, | 603 int merge_history_length, |
| 604 int32 minimum_page_id); | 604 int32 minimum_page_id); |
| 605 | 605 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 ObserverList<TabContentsObserver> observers_; | 850 ObserverList<TabContentsObserver> observers_; |
| 851 | 851 |
| 852 // Content restrictions, used to disable print/copy etc based on content's | 852 // Content restrictions, used to disable print/copy etc based on content's |
| 853 // (full-page plugins for now only) permissions. | 853 // (full-page plugins for now only) permissions. |
| 854 int content_restrictions_; | 854 int content_restrictions_; |
| 855 | 855 |
| 856 DISALLOW_COPY_AND_ASSIGN(TabContents); | 856 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 857 }; | 857 }; |
| 858 | 858 |
| 859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |