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

Unified Diff: chrome/renderer/searchbox/searchbox.h

Issue 15907006: Rip out browser-side RID caching for most visited items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use view_id/rid instead of view_id:rid in URL. Created 7 years, 6 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
Index: chrome/renderer/searchbox/searchbox.h
diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h
index ec58f40b92332a09251409b0de4efe908062f859..0b4fc960e15e810880aa876fe75287f2974e0f9e 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -114,6 +114,20 @@ class SearchBox : public content::RenderViewObserver,
// browser.
void UndoAllMostVisitedDeletions();
+ // Generates the thumbnail URL of the most visited item specified by the
+ // |most_visited_item_id|. If the |most_visited_item_id| is valid, returns
+ // true and fills in |url|. If the |most_visited_item_id| is invalid, returns
+ // false and |url| is not set.
+ bool GenerateThumbnailURLFromRID(InstantRestrictedID most_visited_item_id,
+ GURL* url) const;
+
+ // Generates the favicon URL of the most visited item specified by the
+ // |most_visited_item_id|. If the |most_visited_item_id| is valid, returns
+ // true and fills in |url|. If the |most_visited_item_id| is invalid, returns
+ // false and |url| is not set.
+ bool GenerateFaviconURLFromRID(InstantRestrictedID most_visited_item_id,
+ GURL* url) const;
+
private:
// Overridden from content::RenderViewObserver:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -144,7 +158,7 @@ class SearchBox : public content::RenderViewObserver,
void OnFontInformationReceived(const string16& omnibox_font,
size_t omnibox_font_size);
void OnMostVisitedChanged(
- const std::vector<InstantMostVisitedItemIDPair>& items);
+ const std::vector<InstantMostVisitedItem>& items);
// Returns the current zoom factor of the render view or 1 on failure.
double GetZoom() const;

Powered by Google App Engine
This is Rietveld 408576698