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

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

Issue 1017853002: [Icons NTP] Allow chrome-search:// large-icon and fallback-icon hosts to use <view_id>/<restricted_… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 d0821ca5aedcb6fdca58af359f6b58e90d44c10d..7374835a80be418ef1aa1b52cd8b5c859d85175f 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -58,6 +58,18 @@ class SearchBox : public content::RenderViewObserver,
bool GenerateFaviconURLFromTransientURL(const GURL& transient_url,
GURL* url) const;
+ // Valid forms of |transient_url|:
+ // chrome-search://large-icon/<view_id>/<restricted_id>
+ // chrome-search://large-icon/<size>/<view_id>/<restricted_id>
+ bool GenerateLargeIconURLFromTransientURL(const GURL& transient_url,
James Hawkins 2015/03/17 21:46:41 It seems like having three similarly named methods
huangs 2015/03/18 21:43:10 I think we can even do better: Yank all these out
+ GURL* url) const;
+
+ // Valid forms of |transient_url|:
+ // chrome-search://fallback-icon/<view_id>/<restricted_id>
+ // chrome-search://fallback-icon/<icon styles>/<view_id>/<restricted_id>
+ bool GenerateFallbackIconURLFromTransientURL(const GURL& transient_url,
+ GURL* url) const;
+
// Generates the thumbnail URL of the most visited item specified by the
// |transient_url|. If the |transient_url| is valid, returns true and fills in
// |url|. If the |transient_url| is invalid, returns false and |url| is not

Powered by Google App Engine
This is Rietveld 408576698