| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 10 #include <string> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // For example, the NewTabUIContents overrides this method to support | 173 // For example, the NewTabUIContents overrides this method to support |
| 174 // javascript: URLs. | 174 // javascript: URLs. |
| 175 virtual bool SupportsURL(GURL* url); | 175 virtual bool SupportsURL(GURL* url); |
| 176 | 176 |
| 177 // Tab navigation state ------------------------------------------------------ | 177 // Tab navigation state ------------------------------------------------------ |
| 178 | 178 |
| 179 // Returns the current navigation properties, which if a navigation is | 179 // Returns the current navigation properties, which if a navigation is |
| 180 // pending may be provisional (e.g., the navigation could result in a | 180 // pending may be provisional (e.g., the navigation could result in a |
| 181 // download, in which case the URL would revert to what it was previously). | 181 // download, in which case the URL would revert to what it was previously). |
| 182 const GURL& GetURL() const; | 182 const GURL& GetURL() const; |
| 183 virtual const std::wstring& GetTitle() const; | 183 const string16& GetTitle() const; |
| 184 | 184 |
| 185 // The max PageID of any page that this TabContents has loaded. PageIDs | 185 // The max PageID of any page that this TabContents has loaded. PageIDs |
| 186 // increase with each new page that is loaded by a tab. If this is a | 186 // increase with each new page that is loaded by a tab. If this is a |
| 187 // WebContents, then the max PageID is kept separately on each SiteInstance. | 187 // WebContents, then the max PageID is kept separately on each SiteInstance. |
| 188 // Returns -1 if no PageIDs have yet been seen. | 188 // Returns -1 if no PageIDs have yet been seen. |
| 189 int32 GetMaxPageID(); | 189 int32 GetMaxPageID(); |
| 190 | 190 |
| 191 // Updates the max PageID to be at least the given PageID. | 191 // Updates the max PageID to be at least the given PageID. |
| 192 void UpdateMaxPageID(int32 page_id); | 192 void UpdateMaxPageID(int32 page_id); |
| 193 | 193 |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 // Delegates for InfoBars associated with this TabContents. | 558 // Delegates for InfoBars associated with this TabContents. |
| 559 std::vector<InfoBarDelegate*> infobar_delegates_; | 559 std::vector<InfoBarDelegate*> infobar_delegates_; |
| 560 | 560 |
| 561 // See getter above. | 561 // See getter above. |
| 562 bool is_being_destroyed_; | 562 bool is_being_destroyed_; |
| 563 | 563 |
| 564 DISALLOW_COPY_AND_ASSIGN(TabContents); | 564 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 565 }; | 565 }; |
| 566 | 566 |
| 567 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 567 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |