Index: chrome/browser/navigation_entry.h |
=================================================================== |
--- chrome/browser/navigation_entry.h (revision 3749) |
+++ chrome/browser/navigation_entry.h (working copy) |
@@ -219,6 +219,7 @@ |
// the user. |
void set_url(const GURL& url) { |
url_ = url; |
+ url_as_string_ = UTF8ToWide(url_.spec()); |
} |
const GURL& url() const { |
return url_; |
@@ -344,6 +345,10 @@ |
return restored_; |
} |
+ // Returns the title to be displayed on the tab. This could be the title of |
+ // the page if it is available or the URL. |
+ const std::wstring& GetTitleForDisplay(); |
+ |
private: |
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
// Session/Tab restore save portions of this class so that it can be recreated |
@@ -357,6 +362,7 @@ |
scoped_refptr<SiteInstance> site_instance_; |
PageType page_type_; |
GURL url_; |
+ std::wstring url_as_string_; |
GURL display_url_; |
std::wstring title_; |
FaviconStatus favicon_; |