| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 void UpdateWebPreferences(); | 720 void UpdateWebPreferences(); |
| 721 | 721 |
| 722 // If our controller was restored and the page id is > than the site | 722 // If our controller was restored and the page id is > than the site |
| 723 // instance's page id, the site instances page id is updated as well as the | 723 // instance's page id, the site instances page id is updated as well as the |
| 724 // renderers max page id. | 724 // renderers max page id. |
| 725 void UpdateMaxPageIDIfNecessary(SiteInstance* site_instance, | 725 void UpdateMaxPageIDIfNecessary(SiteInstance* site_instance, |
| 726 RenderViewHost* rvh); | 726 RenderViewHost* rvh); |
| 727 | 727 |
| 728 // Called by OnMsgNavigate to update history state. Overridden by subclasses | 728 // Called by OnMsgNavigate to update history state. Overridden by subclasses |
| 729 // that don't want to be added to history. | 729 // that don't want to be added to history. |
| 730 virtual void UpdateHistoryForNavigation(const GURL& display_url, | 730 virtual void UpdateHistoryForNavigation(const GURL& virtual_url, |
| 731 const NavigationController::LoadCommittedDetails& details, | 731 const NavigationController::LoadCommittedDetails& details, |
| 732 const ViewHostMsg_FrameNavigate_Params& params); | 732 const ViewHostMsg_FrameNavigate_Params& params); |
| 733 | 733 |
| 734 // Saves the given title to the navigation entry and does associated work. It | 734 // Saves the given title to the navigation entry and does associated work. It |
| 735 // will update history and the view for the new title, and also synthesize | 735 // will update history and the view for the new title, and also synthesize |
| 736 // titles for file URLs that have none (so we require that the URL of the | 736 // titles for file URLs that have none (so we require that the URL of the |
| 737 // entry already be set). | 737 // entry already be set). |
| 738 // | 738 // |
| 739 // This is used as the backend for state updates, which include a new title, | 739 // This is used as the backend for state updates, which include a new title, |
| 740 // or the dedicated set title message. It returns true if the new title is | 740 // or the dedicated set title message. It returns true if the new title is |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 | 1107 |
| 1108 // Settings that get passed to the renderer process. | 1108 // Settings that get passed to the renderer process. |
| 1109 RendererPreferences renderer_preferences_; | 1109 RendererPreferences renderer_preferences_; |
| 1110 | 1110 |
| 1111 // --------------------------------------------------------------------------- | 1111 // --------------------------------------------------------------------------- |
| 1112 | 1112 |
| 1113 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1113 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1114 }; | 1114 }; |
| 1115 | 1115 |
| 1116 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1116 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |