Index: chrome/browser/ui/toolbar/toolbar_model.h |
diff --git a/chrome/browser/ui/toolbar/toolbar_model.h b/chrome/browser/ui/toolbar/toolbar_model.h |
index eec3cd0e39daa79f68dce4c3d12ad4676333ef81..d05cccbe70a2d2df34e9e498d5bae1ace3d79d6c 100644 |
--- a/chrome/browser/ui/toolbar/toolbar_model.h |
+++ b/chrome/browser/ui/toolbar/toolbar_model.h |
@@ -44,7 +44,9 @@ class ToolbarModel { |
// includes: |
// - Some characters may be unescaped. |
// - The scheme and/or trailing slash may be dropped. |
- virtual base::string16 GetFormattedURL() const = 0; |
+ // If |prefix_end| is non-NULL, it is set to the length of the pre-hostname |
+ // portion of the resulting URL. |
+ virtual base::string16 GetFormattedURL(size_t* prefix_end) const = 0; |
// Some search URLs bundle a special "corpus" param that we can extract and |
// display next to users' search terms in cases where we'd show the search |
@@ -83,8 +85,8 @@ class ToolbarModel { |
// |level| given, ignoring search term replacement state. |
virtual int GetIconForSecurityLevel(SecurityLevel level) const = 0; |
- // Returns the name of the EV cert holder. Only call this when the security |
- // level is EV_SECURE. |
+ // Returns the name of the EV cert holder. This returns an empty string if |
+ // the security level is not EV_SECURE. |
virtual base::string16 GetEVCertName() const = 0; |
// Returns whether the URL for the current navigation entry should be |