Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: chrome/browser/navigation_entry.h

Issue 7905: This fixes http://code.google.com/p/chromium/issues/detail?id=2529, which is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/navigation_controller.cc ('k') | chrome/browser/navigation_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « chrome/browser/navigation_controller.cc ('k') | chrome/browser/navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698