Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index 36996f00cdc50c5c21055e96450d1200cdca1bf1..65de3da3795bda157578c6c706cee694d3d271ef 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -317,6 +317,12 @@ class WebContents : public PageNavigator, |
// download, in which case the URL would revert to what it was previously). |
virtual const base::string16& GetTitle() const = 0; |
+ // Saves the given title to the navigation entry and does associated work. It |
+ // will update history and the view with the new title, and also synthesize |
+ // titles for file URLs that have none. Thus |entry| must have a URL set. |
+ virtual void UpdateTitleForEntry(NavigationEntry* entry, |
+ const base::string16& title) = 0; |
+ |
// The max page ID for any page that the current SiteInstance has loaded in |
// this WebContents. Page IDs are specific to a given SiteInstance and |
// WebContents, corresponding to a specific RenderView in the renderer. |