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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 const ViewHostMsg_FrameNavigate_Params& params); | 766 const ViewHostMsg_FrameNavigate_Params& params); |
767 | 767 |
768 // Saves the given title to the navigation entry and does associated work. It | 768 // Saves the given title to the navigation entry and does associated work. It |
769 // will update history and the view for the new title, and also synthesize | 769 // will update history and the view for the new title, and also synthesize |
770 // titles for file URLs that have none (so we require that the URL of the | 770 // titles for file URLs that have none (so we require that the URL of the |
771 // entry already be set). | 771 // entry already be set). |
772 // | 772 // |
773 // This is used as the backend for state updates, which include a new title, | 773 // This is used as the backend for state updates, which include a new title, |
774 // or the dedicated set title message. It returns true if the new title is | 774 // or the dedicated set title message. It returns true if the new title is |
775 // different and was therefore updated. | 775 // different and was therefore updated. |
776 bool UpdateTitleForEntry(NavigationEntry* entry, const std::wstring& title); | 776 bool UpdateTitleForEntry(NavigationEntry* entry, |
| 777 const base::i18n::String16WithDirection& title); |
777 | 778 |
778 // Causes the TabContents to navigate in the right renderer to |entry|, which | 779 // Causes the TabContents to navigate in the right renderer to |entry|, which |
779 // must be already part of the entries in the navigation controller. | 780 // must be already part of the entries in the navigation controller. |
780 // This does not change the NavigationController state. | 781 // This does not change the NavigationController state. |
781 bool NavigateToEntry(const NavigationEntry& entry, | 782 bool NavigateToEntry(const NavigationEntry& entry, |
782 NavigationController::ReloadType reload_type); | 783 NavigationController::ReloadType reload_type); |
783 | 784 |
784 // Misc non-view stuff ------------------------------------------------------- | 785 // Misc non-view stuff ------------------------------------------------------- |
785 | 786 |
786 // Helper functions for sending notifications. | 787 // Helper functions for sending notifications. |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 ObserverList<TabContentsObserver> observers_; | 1095 ObserverList<TabContentsObserver> observers_; |
1095 | 1096 |
1096 // Content restrictions, used to disable print/copy etc based on content's | 1097 // Content restrictions, used to disable print/copy etc based on content's |
1097 // (full-page plugins for now only) permissions. | 1098 // (full-page plugins for now only) permissions. |
1098 int content_restrictions_; | 1099 int content_restrictions_; |
1099 | 1100 |
1100 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1101 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1101 }; | 1102 }; |
1102 | 1103 |
1103 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1104 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |