summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/navigation_entry.h')
-rw-r--r--chrome/browser/navigation_entry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/navigation_entry.h b/chrome/browser/navigation_entry.h
index f7aa143..1dcbe19 100644
--- a/chrome/browser/navigation_entry.h
+++ b/chrome/browser/navigation_entry.h
@@ -219,6 +219,7 @@ class NavigationEntry {
// 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 @@ class NavigationEntry {
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 @@ class NavigationEntry {
scoped_refptr<SiteInstance> site_instance_;
PageType page_type_;
GURL url_;
+ std::wstring url_as_string_;
GURL display_url_;
std::wstring title_;
FaviconStatus favicon_;