diff options
Diffstat (limited to 'chrome/common/gfx/text_elider.h')
-rw-r--r-- | chrome/common/gfx/text_elider.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/common/gfx/text_elider.h b/chrome/common/gfx/text_elider.h index 92d7d9e..8bf2b9c 100644 --- a/chrome/common/gfx/text_elider.h +++ b/chrome/common/gfx/text_elider.h @@ -13,8 +13,23 @@ class GURL; +namespace url_parse { +struct Parsed; +} + namespace gfx { +// A function to get URL string from a GURL that will be suitable for display +// to the user. The parsing of the URL may change because various parts of the +// string will change lengths. The new parsing will be placed in the given out +// parameter. |prefix_end| is set to the end of the prefix (spec and separator +// characters before host). +// |languages|, |new_parsed|, and |prefix_end| may all be empty or NULL. +std::wstring GetCleanStringFromUrl(const GURL& url, + const std::wstring& languages, + url_parse::Parsed* new_parsed, + size_t* prefix_end); + // This function takes a GURL object and elides it. It returns a string // which composed of parts from subdomain, domain, path, filename and query. // A "..." is added automatically at the end if the elided string is bigger |